* {
    box-sizing: border-box;
}

#section-currency {
}

    /* Gutter comes from the shared token, so this section lines up with every
       other one at every width. It used to be 48px here against .pg-section's
       30px, which is why the sections drifted out of alignment on resize. */
    #section-currency.card-panel {
        padding-block: 0;
        padding-inline: var(--section-gutter);
        width: auto;
        margin: 0;
    }

.chip {
    display: block;
    margin: 0 auto;
    width: fit-content;
    background: rgba(0,196,179,0.08);
    border-radius: 40px;
    padding: 8px 20px 8px 16px;
}

    .chip-dot, .chip span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

.chip-dot {
    width: 10px;
    height: 10px;
    background: #00c4b3;
    border-radius: 50%;
}

.chip span {
    color: #00c4b3;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.title-section {
    text-align: center;
   /* margin-top: 12px;*/
    width: 100%;
}

.title-main {
    font-size: 2rem;
    font-weight: 600;
    color: #003b70;
    line-height: 1.2;
}

.last-update {
    color: #00c4b3;
    font-size: 1rem;
    font-weight: 400;
    margin-top: 6px;
    letter-spacing: 0.2px;
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin: 32px 0 20px;
}

.slider-arrow {
    width: 48px;
    height: 48px;
    background: #eef2f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.2s;
    user-select: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.02);
    opacity: 1;
    pointer-events: auto;
}

    .slider-arrow.disabled {
        opacity: 0.5;
        pointer-events: none;
        cursor: default;
    }

    .slider-arrow:hover:not(.disabled) {
        background: #dce5ed;
    }

    .slider-arrow.left svg {
        transform: rotate(180deg);
    }

    .slider-arrow svg {
        width: 20px;
        height: 20px;
        fill: #003b70;
    }

/* ── Carousel ── */
.currency__carousel {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0px 0 0px;
    width: 100%;
}

/* ── Scrollable track ── */
/* Arrow-less strip, mirroring the channels section. This used to be
   overflow-x:hidden above 1024px because the arrows did the scrolling via
   scrollBy(); with the arrows gone it has to be auto or the strip cannot
   move at all on desktop. */
.currency__track {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Hide the scrollbar — dragging and swiping are the affordance */
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

    .currency__track::-webkit-scrollbar {
        display: none;
    }

    /* Set by dragScroll.js while a pointer drag is in progress */
    .currency__track.is-dragging {
        cursor: grabbing;
        scroll-behavior: auto; /* smooth would fight per-frame scrollLeft writes */
        scroll-snap-type: none; /* snapping mid-drag makes it feel sticky */
    }

/* ── Cards row: must be wider than track to enable scroll ── */
/* margin-inline-start:0 (was `margin: 0 auto`) so the strip starts at the
   leading edge instead of centring when the cards do not fill the width. */
#cardsRow {
    margin: 0;
    display: flex;
    gap: 10px;
    width: max-content;
}

.currency-card {
    scroll-snap-align: start;
}

/* ── Currency card ── */
.currency-card {
    /* flex: 0 0 auto; 
    width: 277px;
    background: #00c4b3;
    border-radius: 20px;
    padding: 20px 16px 16px 20px;
    color: white;
    box-shadow: 0 12px 18px -8px rgba(0,196,179,0.3);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;*/
    max-width: 300px;
    min-width: 230px;
    flex: 0 0 auto;
    width: 268px;
    background: #003B70;
    border-radius: 7px;
    padding: 20px 6px 20px 6px;
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.grayColor {
    color: #6A7282;
}
.currency-card__flag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.currency-card__code {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

.currency-card__rates {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.currency-card__rate {
    display: flex;
    align-items: center;
    gap: 10px;
}

.currency-card__label {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    font-weight: 500;
    min-width: 32px;
}

.currency-card__value {
    color: white;
    font-size: 16px;
    font-weight: 400;
}

.currency-card__divider {
    height: 1px;
    background: rgba(255,255,255,0.3);
    width: 100%;
}

/* ── Arrow buttons ── */
    .currency__arrow {
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        background-color: #003B70;
        border: none;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        cursor: pointer;
        transition: background 0.2s;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

        .currency__arrow.hidden {
            background: #DDDDDD;
            cursor: not-allowed;
            pointer-events: none;
        }

    .currency__arrow--left svg {
        transform: rotate(180deg);
    }
    /* ── Show more ── */
    .show-more {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 12px;
        color: #003b70;
        font-size: 1.25rem;
        text-decoration: underline;
        text-underline-offset: 5px;
        cursor: default;
        font-weight: 450;
    }

        .show-more svg {
            fill: #003b70;
            width: 18px;
        }

.flag-img {
    -webkit-user-select: none; /* Safari/older Chrome */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none;
    width: 56px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
    background: #f0f3f7;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
    /* ── Mobile ── */
    @media (max-width: 767px) {
        .currency__arrow {
            display: none !important;
        }

        .currency__track {
            flex: 1;
            overflow-x: auto;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            scrollbar-color: #b3d1dc #ecf3f7;
            padding: 4px 0;
        }
    }

    @media (max-width: 1024px) {
        #section-currency.card-panel {
            margin: 0;  /* spacing handled by Master.css universal padding rule */
        }

        .currency__arrow {
            display: none !important;
        }
    }

    .currency__arrow.grayed {
        background: #DDDDDD;
        cursor: not-allowed;
        pointer-events: none;
    }
    /* Keep .hidden for mobile hiding via JS if needed, 
   but override so desktop arrows are never display:none */
    .currency__arrow.hidden {
        background: #DDDDDD;
        cursor: not-allowed;
        pointer-events: none;
    }

.show-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a3a6b;
    font-size: 20px;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 5px;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .show-more-link:hover {
        color: #2a5fa8;
    }

.arrow {
    margin-top: 9px;
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
       line-height: 1;
}
.ShowMore-Div {
    justify-content: center;
    flex-direction: row;
    gap: 15px;
    display: flex;
    align-items: center;
}
@media (max-width: 768px) {
    #currency-last-updated{
        font-size:14px;
        margin-top:0px !important;
    }

    .show-more-link {
        font-size: 17px;
        margin-top: 30px;
    }
    .arrow {
        margin-top: 34px;
    }
    }
@media (max-width: 500px) {

    .show-more-link {
        font-size: 11px;
        margin-top: 30px;
    }

    .arrow {
        margin-top: 34px;
        font-size: 13px;
    }
    .ShowMore-Div {
        gap: 4px;
    }
    #section-currency.card-panel {
        padding: 0px 0px;
    }
}
/* Section heading block: the gap goes under the whole block, so the title and
   its "last updated" line stay tight together while the space below matches
   every other section on the page. */
#section-currency .title-section {
    margin-bottom: var(--section-title-gap);
}
