/* ============================================================
    STB — site styles (Bootstrap 5.3 base)
   ============================================================ */
/* --stb-magenta, --stb-magenta-dark, --stb-ink, --stb-slate, --stb-muted, --stb-border
   are defined in stb-shared.site.css, loaded before this file on every master. */
:root {
    --stb-pink: #ff679b;         /* accent */
    --stb-warning: #f7b500;      /* e-регистрација button (gold) */
    --stb-warning-dark: #d99e00;
    --stb-green: #8dc63f;
    --stb-petrol: #16a2a2;
    --stb-info: #39afd1;         /* calculator "Calculate" button */
    --stb-info-dark: #2b99b9;
    --stb-danger: #fa5c7c;       /* calculator validation error text */
    --stb-purple: #92278f;
    --stb-gray-bg: #f5f5f5;      /* footer / section bg */
    --stb-gray-2: #f7f8fa;
    --stb-topbar-h: 81px;
    --stb-navbar-h: 56px;
    --stb-topbar-sticky-offset: 52px;
}

body {
    color: #494f54;
    background: #fafbfe;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
}

a { text-decoration: none; }

.stb-skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 2000;
    padding: .75rem 1rem;
    background: #fff;
    color: var(--stb-ink);
    border: 2px solid var(--stb-magenta);
    border-radius: .25rem;
    font-weight: 700;
}

.stb-skip-link:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    overflow: visible;
}

.container,
.container-fluid {
    --bs-gutter-x: 30px;
}

/* ============================ MAIN CONTAINER ============================ */
@media (min-width: 992px) {
    .container-fluid { max-width: 85%; }
    .stb-ticker { max-width: 85%; margin-left: auto; margin-right: auto; }
    .stb-digital > .container, .stb-info-cards > .container, .stb-favourite-cards > .container {
        max-width: 85%; margin-left: auto; margin-right: auto;
    }
}

/* .btn-primary / .btn-outline-primary / .btn-outline-danger overrides live in stb-shared.site.css. */
.btn-warning {
    background-color: var(--stb-warning);
    border-color: var(--stb-warning);
    color: var(--stb-ink);
}
.btn-warning:hover { background-color: var(--stb-warning-dark); border-color: var(--stb-warning-dark); color: var(--stb-ink); }
.text-magenta { color: var(--stb-magenta) !important; }

/* ============================ HEADER / TOPBAR ============================ */
.stb-header {
    position: sticky;
    top: calc(var(--stb-topbar-sticky-offset) * -1);
    z-index: 1030;
    background: #fafbfe;
    box-shadow: none;
}
.stb-topbar { background: transparent; border-bottom: 1px solid var(--stb-border); }
.stb-topbar .container-fluid { display: flex; align-items: center; flex-wrap: wrap; padding: .5rem 15px; gap: .35rem; }

.stb-logo { display: inline-flex; align-items: center; margin-right: 1rem; }
.stb-logo img { height: 35px; width: auto; }

/* Audience switch (Население / Правни лица) */
.stb-audience { display: inline-flex; align-items: center; gap: 1rem; }
.stb-audience a { color: var(--stb-muted); font-weight: 600; font-size: .9rem; }
.stb-audience a.active, .stb-audience a:hover { color: var(--stb-magenta); }

/* right cluster */
.stb-topbar-right { margin-left: auto; display: inline-flex; align-items: center; gap: 1rem; }
.stb-topbar-right .stb-phone { color: var(--stb-slate); font-size: .85rem; white-space: nowrap; }
.stb-topbar-right .stb-phone i { color: var(--stb-magenta); }
.stb-lang { font-size: .85rem; color: var(--stb-muted); }
.stb-lang a { color: var(--stb-muted); font-weight: 600; padding: 0 .15rem; }
.stb-lang a.active, .stb-lang a:hover { color: var(--stb-magenta); }
.stb-search-toggle { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; color: var(--stb-muted); font-size: .85rem; cursor: pointer; }
.stb-search-toggle .mdi { font-size: 1.05rem; }
.stb-search-toggle:hover { color: var(--stb-magenta); }

/* Hamburger (3 lines) — matches .navbar-toggle .lines */
.stb-toggle {
    display: none; background: none; border: 0; cursor: pointer; padding: .4rem .2rem;
    width: 34px;
}
.stb-toggle .lines { display: block; }
.stb-toggle .lines span {
    display: block; height: 2px; width: 24px; margin: 5px 0;
    background: var(--stb-magenta); border-radius: 2px; transition: .25s;
}

/* Right-side search drawer */
.stb-search-drawer-shell {
    position: fixed;
    inset: 0;
    z-index: 1060;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
}

.stb-search-drawer-shell.is-open {
    pointer-events: auto;
    visibility: visible;
}

.stb-search-drawer-shell:not(.is-open) .stb-search-drawer {
    display: none;
}

.stb-search-drawer__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(33, 37, 41, .18);
    opacity: 0;
    transition: opacity .2s ease;
}

.stb-search-drawer-shell.is-open .stb-search-drawer__backdrop {
    opacity: 1;
}

.stb-search-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 100vw);
    height: 100dvh;
    background: #fff;
    box-shadow: -8px 0 28px rgba(52, 64, 74, .14);
    transform: translateX(100%);
    transition: transform .24s ease;
    overflow-y: auto;
}

.stb-search-drawer-shell.is-open .stb-search-drawer {
    transform: translateX(0);
}

.stb-search-drawer__titlebar {
    min-height: 56px;
    padding: 0 16px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #f4f6fb;
}

.stb-search-drawer__titlebar h2 {
    margin: 0;
    color: #34404a;
    font-size: 1rem;
    font-weight: 700;
}

.stb-search-drawer__close {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #3f4b5f;
    color: #fff;
    font-size: 1rem;
    line-height: 1;
}

.stb-search-drawer__body {
    padding: 18px 20px 28px;
}

.stb-search-drawer__form {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 54px;
    align-items: center;
    min-height: 42px;
    background: #f1f3f8;
    box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.stb-search-drawer__form-icon {
    display: inline-flex;
    justify-content: center;
    color: #5f6975;
    font-size: 1.25rem;
}

.stb-search-drawer__form input {
    min-width: 0;
    height: 42px;
    border: 0;
    background: transparent;
    color: #34404a;
    font-size: .95rem;
}

.stb-search-drawer__form input::placeholder {
    color: #aab2bd;
}

.stb-search-drawer__form button {
    height: 42px;
    border: 0;
    background: var(--stb-magenta);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(236, 0, 140, .28);
}

.stb-search-drawer__faq {
    margin-top: 22px;
    border-top: 1px solid #e6eaf0;
}

.stb-search-drawer__faq h3 {
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid #e6eaf0;
    color: #4a4f57;
    font-size: .95rem;
    font-weight: 700;
}

.stb-search-drawer__faq-list {
    padding-top: 16px;
}

.stb-search-drawer__faq-item {
    margin-bottom: 10px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(52, 64, 74, .07);
}

.stb-search-drawer__faq-toggle {
    min-height: 82px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 16px 22px;
    border: 0;
    border-bottom: 1px solid transparent;
    background: #fff;
    color: #34404a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.18;
    text-align: left;
}

.stb-search-drawer__faq-toggle:hover,
.stb-search-drawer__faq-toggle:focus,
.stb-search-drawer__faq-toggle[aria-expanded="true"] {
    color: var(--stb-magenta);
}

.stb-search-drawer__faq-toggle .mdi {
    flex: 0 0 auto;
    color: #34404a;
    font-size: 1.25rem;
    transition: transform .18s ease;
}

.stb-search-drawer__faq-toggle[aria-expanded="true"] .mdi {
    transform: rotate(90deg);
}

.stb-search-drawer__faq-answer {
    padding: 18px 22px 26px;
    border-top: 1px solid #dfe5ea;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
}

.stb-search-drawer__faq-answer p {
    margin: 0;
}

.stb-search-drawer__faq-answer a {
    color: var(--stb-magenta);
    font-weight: 500;
}

.stb-search-drawer__faq-answer a:hover,
.stb-search-drawer__faq-answer a:focus {
    color: var(--stb-magenta-dark);
    text-decoration: underline;
}

.stb-search-drawer--en .stb-search-drawer__faq-toggle {
    min-height: 70px;
    font-size: .95rem;
    font-weight: 600;
}

.stb-search-drawer--en .stb-search-drawer__faq-answer {
    font-size: .95rem;
}

.stb-search-drawer--en .stb-contact-card--magenta {
    margin-top: 20px;
}

body.stb-search-drawer-open {
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .stb-search-drawer {
        width: min(305px, 88vw);
    }

    .stb-search-drawer__body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .stb-contact-card--magenta {
        margin-top: 24px;
    }
}

/* ============================ SEARCH RESULTS ============================ */
.stb-search-results {
    max-width: 980px;
    color: #494f54;
}

.stb-search-results__header {
    margin-bottom: 1rem;
    padding-bottom: .875rem;
    border-bottom: 1px solid #edf0f2;
}

.stb-search-results__header h1 {
    margin: 0;
    color: #6c757d;
    font-size: 1.5rem;
    font-weight: 500;
}

.stb-search-results__status {
    margin: 0 0 1.5rem;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
}

.stb-search-results__status strong {
    color: #494f54;
    font-weight: 600;
}

.stb-search-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.stb-search-list__item {
    padding: 1.125rem 0 1.35rem;
    border-top: 1px dotted #dfe5ea;
}

.stb-search-list__item:first-child {
    padding-top: 0;
    border-top: 0;
}

.stb-search-list__title {
    display: inline-block;
    margin-bottom: .25rem;
    color: var(--stb-magenta);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.35;
}

.stb-search-list__title:hover,
.stb-search-list__title:focus {
    color: var(--stb-magenta-dark);
    text-decoration: underline;
}

.stb-search-list__snippet {
    margin: 0;
    color: #494f54;
    font-size: 1rem;
    line-height: 1.45;
}

@media (max-width: 575.98px) {
    .stb-search-results {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .stb-search-results__header h1 {
        font-size: 1.3rem;
    }

    .stb-search-list__title,
    .stb-search-list__snippet {
        font-size: .95rem;
    }
}

/* ============================ MAIN NAV ============================ */
.stb-navbar {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 0;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
}
.stb-navbar .container-fluid { padding: 0 15px; }
.stb-nav-logo { align-items: center; margin-right: 1.25rem; flex: 0 0 auto; display: none !important; }
.stb-header--pinned .stb-nav-logo { display: inline-flex !important; }
.stb-nav-logo img { height: 35px; width: auto; }
.stb-nav-actions { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; }
.stb-nav-actions .btn { border-radius: 0; }
.stb-nav-panel { min-width: 0; }
.stb-nav { align-items: center; min-width: 0; }
.stb-nav .nav-link {
    color: var(--stb-muted); font-weight: 700; font-size: 1rem;
    padding: 1rem 1.1rem !important; text-transform: none;
}
.stb-nav .nav-link:hover, .stb-nav .nav-item.show > .nav-link { color: var(--stb-magenta); }
/* Current section: keep the top-level item lit so users know where they are. */
.stb-nav .nav-link.active { color: var(--stb-magenta); }
/* No down-caret on the top-level nav items (submenu › arrows are kept below). */
.stb-nav .nav-link.dropdown-toggle::after { display: none; }
/* Live dropdown: thin grey border all around, soft shadow, 4px bottom radius, 16px text. */
.stb-nav .dropdown-menu {
    border: 1px solid #d9e3e9; border-radius: 0 0 4px 4px;
    box-shadow: 0 0 35px rgba(154,161,171,.15); padding: .25rem 0; margin-top: 0;
    font-size: 1rem;
}
.stb-nav .dropdown-item { padding: .375rem 1.5rem; color: #494f54; font-weight: 400; white-space: normal; }
.stb-nav .dropdown-item:hover, .stb-nav .dropdown-item:focus { background: #f8f9fa; color: var(--stb-magenta); }
.stb-nav .dropdown-item.active, .stb-nav .dropdown-item:active { background: #edf1f5; color: var(--stb-magenta); }

/* Nested submenus (2nd / 3rd level) */
.stb-nav .dropdown-submenu { position: relative; }
.stb-nav .dropdown-submenu > .dropdown-toggle::after {
    display: inline-block; margin-left: .4rem; content: "\203A"; float: right; border: 0; font-weight: 700;
}
/* Live: the flyout is a plain grey-bordered menu (no magenta bar). */
.stb-nav .dropdown-submenu > .dropdown-menu { top: 0; left: 100%; margin: 0; border: 1px solid #d9e3e9; border-radius: 4px; }
/* Current group: keep the submenu toggle (e.g. „По видување“) lit as part of the trail. */
.stb-nav .dropdown-submenu > .dropdown-item.dropdown-toggle.active { color: var(--stb-magenta); }

/* Desktop: open dropdowns + submenus on hover */
@media (min-width: 1200px) {
    .stb-nav .dropdown:hover > .dropdown-menu,
    .stb-nav .dropdown-submenu:hover > .dropdown-menu { display: block; }
    .stb-nav .dropdown-menu { min-width: 260px; }
}

/* Desktop (1200px+): one compact size for the top-level nav-links and CTA
   buttons, sized to comfortably fit all 8 items + both buttons even at the
    narrowest desktop width (1200px) — verified in-browser against real nav
   content, not guessed. Since it already fits at the narrowest case, it
   fits with room to spare at every wider desktop width too, so this stays
   fixed all the way up rather than growing on bigger screens (by request —
    a consistent compact single-row look at any desktop size). */
@media (min-width: 1200px) {
    .stb-navbar .container-fluid {
        flex-wrap: nowrap;
    }

    /* No overflow-x here: it would force overflow-y to compute as "auto"
       too (per the CSS spec, any non-visible axis drags the other along),
       which clips the hover-opened .dropdown-menu popups. Fit is instead
       guaranteed by measurement, not a scroll fallback — see comment above. */
    .stb-nav-panel {
        flex: 1 1 auto;
    }

    .stb-nav {
        flex-wrap: nowrap;
    }

    .stb-nav .nav-link {
        font-size: 1rem;
        padding-left: .35rem !important;
        padding-right: .35rem !important;
        white-space: nowrap;
    }

    .stb-nav > .nav-item:first-child > .nav-link {
        padding-left: 0 !important;
    }

    .stb-nav-actions {
        flex: 0 0 auto;
        gap: .3rem;
    }

    .stb-nav-actions .btn {
        font-size: 1rem;
        padding-left: .4rem;
        padding-right: .4rem;
        white-space: nowrap;
    }
}

/* ============================================================
   Mobile / tablet: full-screen overlay panel with accordion nav
   ============================================================ */
@media (max-width: 1199.98px) {
    .stb-header { top: 0; }

    .stb-topbar .container-fluid { padding: .45rem 1rem; }
    .stb-topbar-right { gap: .6rem; }

    /* Desktop-positioned bits move into the panel / topbar on mobile */
    .stb-audience { display: inline-flex !important; }
    .stb-audience a { font-size: 1rem; font-weight: 400; }
    .stb-lang { display: inline-flex; align-items: center; gap: .25rem; }
    .stb-nav-actions { display: none; }
    .stb-login-m .mdi { font-size: 1rem; }

    /* Hamburger sits at the far right of the topbar and morphs into an X */
    .stb-toggle { display: inline-block; order: 3; }
    .stb-toggle .lines span { background: var(--stb-muted); transform-origin: center; }
    .stb-toggle[aria-expanded="true"] .lines span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .stb-toggle[aria-expanded="true"] .lines span:nth-child(2) { opacity: 0; }
    .stb-toggle[aria-expanded="true"] .lines span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .stb-navbar { border-top: 0; padding: 0; }
    .stb-nav-panel.collapsing,
    .stb-nav-panel.collapse.show {
        position: static;
        flex-basis: 100%;
        width: 100%;
        height: auto !important;
        overflow: visible;
        background: #fff;
        padding: 0;
        transition: none;
    }

    /* Audience tabs */
    .stb-audience-m {
        display: flex; justify-content: center; gap: 2.75rem;
        padding: 1.1rem 0 1.25rem; border-bottom: 1px solid var(--stb-border);
    }
    .stb-audience-m a {
        position: relative; color: var(--stb-muted); font-weight: 700; font-size: 1.05rem;
        padding-bottom: .4rem;
    }
    .stb-audience-m a.active { color: var(--stb-magenta); }

    /* Accordion — top level */
    .stb-nav { align-items: stretch; }
    .stb-nav .nav-item { width: 100%; }
    .stb-nav .nav-link {
        display: flex; align-items: center; justify-content: space-between;
        padding: .95rem .1rem !important; border-bottom: 1px solid var(--stb-border);
        color: var(--stb-slate); font-weight: 700;
    }
    .stb-nav .nav-link[aria-expanded="true"] { color: var(--stb-magenta); }

    /* Chevrons for every expandable row (top level + nested) */
    .stb-nav .nav-link.dropdown-toggle::after,
    .stb-nav .dropdown-submenu > .dropdown-toggle::after {
        display: inline-block; float: none; margin: 0 0 0 .5rem; border: 0;
        font-family: "Material Design Icons"; font-weight: 400; content: "\F0140"; /* mdi-chevron-down */
        font-size: 1.35rem; line-height: 1; color: inherit;
        transition: transform .2s ease;
    }
    .stb-nav .nav-link.dropdown-toggle[aria-expanded="true"]::after,
    .stb-nav .dropdown-submenu > .dropdown-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }

    /* Nested menus render static + indented (not floating) */
    .stb-nav .dropdown-menu {
        position: static !important; float: none; inset: auto !important; transform: none !important;
        width: 100%; min-width: 0; margin: 0; padding: 0 0 0 1rem;
        border: 0; border-radius: 0; box-shadow: none; background: transparent;
    }
    .stb-nav .dropdown-submenu > .dropdown-menu { padding-left: 1rem; border: 0; box-shadow: none; }

    /* Level 2 / 3 rows */
    .stb-nav .dropdown-item {
        padding: .8rem .1rem; border-bottom: 1px solid var(--stb-border);
        color: var(--stb-slate); white-space: normal;
    }
    .stb-nav .dropdown-submenu > .dropdown-item.dropdown-toggle {
        display: flex; align-items: center; justify-content: space-between; font-weight: 600;
    }
    .stb-nav .dropdown-submenu > .dropdown-item.dropdown-toggle[aria-expanded="true"] { color: var(--stb-magenta); }

    /* Panel footer: e-регистрација/e-најава buttons + phone-only language switch */
    .stb-nav-panel-foot { display: flex; justify-content: center; gap: .5rem; padding: 1.25rem 0 .65rem; text-align: center; }
    .stb-nav-panel-foot .btn { border-radius: 0; min-width: 150px; }
    .stb-lang-m { display: none; margin-top: 1.4rem; font-weight: 700; }
    .stb-lang-m a { color: var(--stb-muted); padding: 0 .55rem; }
    .stb-lang-m a.active { color: var(--stb-magenta); }
    .stb-lang-m .sep { color: var(--stb-border); }
}

@media (max-width: 575.98px) {
    .stb-audience, .stb-lang { display: none !important; }
    .stb-nav-panel-foot { flex-direction: column; align-items: center; }
    .stb-lang-m { display: block; }
}

/* ============================ ANNOUNCEMENT TICKER ============================ */
.stb-ticker {
    background: transparent;
    overflow: hidden; padding: .5rem 0;
}
.stb-ticker-track {
    display: flex; gap: 2.5rem; white-space: nowrap; align-items: center;
    animation: stb-ticker-scroll 40s linear infinite;
}
.stb-ticker:hover .stb-ticker-track { animation-play-state: paused; }
.stb-ticker a,
.stb-ticker a:visited { color: #494f54; font-size: .9rem; font-weight: 400; }
.stb-ticker a:hover,
.stb-ticker a:focus { color: #343a40; text-decoration: underline; }
.stb-ticker .sep { color: var(--stb-border); }
@keyframes stb-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================ HERO CAROUSEL ============================ */
.stb-hero .carousel-item img { object-fit: cover; }
.stb-hero .carousel-caption {
    top: 12%; bottom: auto; left: 14.5%; right: auto; width: 30.25%;
    text-align: center; padding: 0;
}
.stb-hero .carousel-caption h3 { color: #6c757d; font-weight: 500; text-transform: uppercase; font-size: 1.8rem; margin: 0; }
.stb-hero .carousel-caption h4 { color: #dc5887; font-weight: 700; text-transform: uppercase; font-size: 1.9rem; margin: .75rem 0 0; padding-top: .75rem; border-top: 1px solid #dfe5ea; }
.stb-hero .carousel-caption .btn-info { margin-top: 1.5rem; background: #39afd1; border-color: #39afd1; color: #fff; border-radius: 0; }
.stb-hero .carousel-caption .btn-info:hover { background: #2f9cbb; border-color: #2f9cbb; color: #fff; }
.stb-hero .carousel-indicators [data-bs-target] {
    width: 34px; height: 4px; border-radius: 2px; border: 0; background: rgba(255,255,255,.65); opacity: 1;
    margin-left: 5px; margin-right: 5px;
}
.stb-hero .carousel-indicators .active { background: #8d99a8; }
.stb-hero .carousel-control-prev-icon, .stb-hero .carousel-control-next-icon {
    width: 36px; height: 36px; background-size: 100%; opacity: .8;
}
.stb-hero .carousel-control-prev-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%236c757d' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e"); }
.stb-hero .carousel-control-next-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%236c757d' viewBox='0 0 16 16'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); }

/* Block Grid layout values are emitted as data attributes so CSP can disallow inline styles. */
[data-grid-columns="1"], [data-area-grid-columns="1"] { --umb-block-grid--grid-columns: 1; --umb-block-grid--area-grid-columns: 1; }
[data-grid-columns="2"], [data-area-grid-columns="2"] { --umb-block-grid--grid-columns: 2; --umb-block-grid--area-grid-columns: 2; }
[data-grid-columns="3"], [data-area-grid-columns="3"] { --umb-block-grid--grid-columns: 3; --umb-block-grid--area-grid-columns: 3; }
[data-grid-columns="4"], [data-area-grid-columns="4"] { --umb-block-grid--grid-columns: 4; --umb-block-grid--area-grid-columns: 4; }
[data-grid-columns="5"], [data-area-grid-columns="5"] { --umb-block-grid--grid-columns: 5; --umb-block-grid--area-grid-columns: 5; }
[data-grid-columns="6"], [data-area-grid-columns="6"] { --umb-block-grid--grid-columns: 6; --umb-block-grid--area-grid-columns: 6; }
[data-grid-columns="7"], [data-area-grid-columns="7"] { --umb-block-grid--grid-columns: 7; --umb-block-grid--area-grid-columns: 7; }
[data-grid-columns="8"], [data-area-grid-columns="8"] { --umb-block-grid--grid-columns: 8; --umb-block-grid--area-grid-columns: 8; }
[data-grid-columns="9"], [data-area-grid-columns="9"] { --umb-block-grid--grid-columns: 9; --umb-block-grid--area-grid-columns: 9; }
[data-grid-columns="10"], [data-area-grid-columns="10"] { --umb-block-grid--grid-columns: 10; --umb-block-grid--area-grid-columns: 10; }
[data-grid-columns="11"], [data-area-grid-columns="11"] { --umb-block-grid--grid-columns: 11; --umb-block-grid--area-grid-columns: 11; }
[data-grid-columns="12"], [data-area-grid-columns="12"] { --umb-block-grid--grid-columns: 12; --umb-block-grid--area-grid-columns: 12; }
[data-col-span="1"], [data-area-col-span="1"] { --umb-block-grid--item-column-span: 1; --umb-block-grid--area-column-span: 1; }
[data-col-span="2"], [data-area-col-span="2"] { --umb-block-grid--item-column-span: 2; --umb-block-grid--area-column-span: 2; }
[data-col-span="3"], [data-area-col-span="3"] { --umb-block-grid--item-column-span: 3; --umb-block-grid--area-column-span: 3; }
[data-col-span="4"], [data-area-col-span="4"] { --umb-block-grid--item-column-span: 4; --umb-block-grid--area-column-span: 4; }
[data-col-span="5"], [data-area-col-span="5"] { --umb-block-grid--item-column-span: 5; --umb-block-grid--area-column-span: 5; }
[data-col-span="6"], [data-area-col-span="6"] { --umb-block-grid--item-column-span: 6; --umb-block-grid--area-column-span: 6; }
[data-col-span="7"], [data-area-col-span="7"] { --umb-block-grid--item-column-span: 7; --umb-block-grid--area-column-span: 7; }
[data-col-span="8"], [data-area-col-span="8"] { --umb-block-grid--item-column-span: 8; --umb-block-grid--area-column-span: 8; }
[data-col-span="9"], [data-area-col-span="9"] { --umb-block-grid--item-column-span: 9; --umb-block-grid--area-column-span: 9; }
[data-col-span="10"], [data-area-col-span="10"] { --umb-block-grid--item-column-span: 10; --umb-block-grid--area-column-span: 10; }
[data-col-span="11"], [data-area-col-span="11"] { --umb-block-grid--item-column-span: 11; --umb-block-grid--area-column-span: 11; }
[data-col-span="12"], [data-area-col-span="12"] { --umb-block-grid--item-column-span: 12; --umb-block-grid--area-column-span: 12; }
[data-row-span="1"], [data-area-row-span="1"] { --umb-block-grid--item-row-span: 1; --umb-block-grid--area-row-span: 1; }
[data-row-span="2"], [data-area-row-span="2"] { --umb-block-grid--item-row-span: 2; --umb-block-grid--area-row-span: 2; }
[data-row-span="3"], [data-area-row-span="3"] { --umb-block-grid--item-row-span: 3; --umb-block-grid--area-row-span: 3; }
[data-row-span="4"], [data-area-row-span="4"] { --umb-block-grid--item-row-span: 4; --umb-block-grid--area-row-span: 4; }
[data-row-span="5"], [data-area-row-span="5"] { --umb-block-grid--item-row-span: 5; --umb-block-grid--area-row-span: 5; }
[data-row-span="6"], [data-area-row-span="6"] { --umb-block-grid--item-row-span: 6; --umb-block-grid--area-row-span: 6; }
[data-row-span="7"], [data-area-row-span="7"] { --umb-block-grid--item-row-span: 7; --umb-block-grid--area-row-span: 7; }
[data-row-span="8"], [data-area-row-span="8"] { --umb-block-grid--item-row-span: 8; --umb-block-grid--area-row-span: 8; }
[data-row-span="9"], [data-area-row-span="9"] { --umb-block-grid--item-row-span: 9; --umb-block-grid--area-row-span: 9; }
[data-row-span="10"], [data-area-row-span="10"] { --umb-block-grid--item-row-span: 10; --umb-block-grid--area-row-span: 10; }
[data-row-span="11"], [data-area-row-span="11"] { --umb-block-grid--item-row-span: 11; --umb-block-grid--area-row-span: 11; }
[data-row-span="12"], [data-area-row-span="12"] { --umb-block-grid--item-row-span: 12; --umb-block-grid--area-row-span: 12; }

@media (max-width: 767.98px) {
    .stb-hero .carousel-caption {
        position: static;
        display: block !important;
        width: 100%;
        padding: 20px 0 44px;
        margin: 0;
        text-align: center;
        color: #dc5887;
    }

    .stb-hero .carousel-caption h3 {
        font-size: 1.6rem;
        line-height: 1.1;
        margin: .625rem 0;
    }

    .stb-hero .carousel-caption h4 {
        font-size: 1.8rem;
        line-height: 1.1;
        margin: .625rem 0;
    }

    .stb-hero .carousel-caption .btn-info {
        margin-top: .625rem;
        font-size: 1.25rem;
        font-weight: 700;
    }

    .stb-hero .carousel-indicators [data-bs-target] {
        background: #ced4da;
    }

    .stb-hero .carousel-indicators .active {
        background: #8d99a8;
    }
}

/* ============================ "ШТО МИ ТРЕБА?" ICON ROW ============================ */
.home-what-i-need { background: #fff; padding: 1.5rem 0 1rem; }
.block-title h3 { text-align: center; color: #494f54; font-weight: 500; font-size: 1.5rem; text-transform: uppercase; }
.win-icon-row { display: flex; flex-wrap: nowrap; justify-content: center; margin-top: 1rem; }
.win-icon-col { flex: 0 0 calc(100% / 9); max-width: calc(100% / 9); text-align: center; padding: 0 5px; }
.win-icon { display: flex; flex-direction: column; align-items: center; gap: .5rem; color: var(--stb-slate); font-weight: 600; }
.win-icon:hover { color: var(--stb-magenta); }
.win-icon:hover .icon-circle { transform: translateY(-3px); }
.icon-circle {
    width: 64px; height: 64px; border-radius: 50%; border: 2px solid currentColor;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; transition: transform .15s;
}
.win-icon .icon-text { font-size: 1rem; font-weight: 400; color: #6c757d; }
.icon-magenta { color: var(--stb-magenta); }
.icon-green   { color: var(--stb-green); }
.icon-petrol  { color: var(--stb-petrol); }
.icon-purple  { color: var(--stb-purple); }
.icon-pink    { color: var(--stb-pink); }
.icon-coral   { color: #f0605d; }
.icon-orange  { color: #f7941e; }
@media (max-width: 767px) {
    .win-icon-row { flex-wrap: wrap; }
    .win-icon-col { flex: 0 0 33.333%; max-width: 33.333%; margin-bottom: 15px; }
}

/* ============================ HOME CARDS ============================ */
.stb-home-cards { background: #fafbfe; padding: 1.5rem 0 2.5rem; }
.stb-home-cards .container-fluid { padding-left: 15px; padding-right: 15px; }
.home-block-main { row-gap: 30px; }
.home-block-main > [class*="col-"] { display: flex; }
.stb-home-card {
    background: #fff; border-radius: 4px; box-shadow: 0 8px 28px rgba(73,79,84,.08);
    display: flex; flex-direction: column; width: 100%; height: 100%;
    min-height: 300px; padding: 1.5rem; color: #34404a; overflow: hidden;
}
.stb-home-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.125rem; }
.stb-home-card__head h3 { margin: 0; color: #34404a; font-size: 1rem; line-height: 1.25; font-weight: 700; text-transform: uppercase; }
.stb-home-card__action { color: var(--stb-magenta); font-size: 1rem; line-height: 1.25; white-space: nowrap; }
a.stb-home-card__action:hover { color: #b90066; }
.stb-home-card__image { display: block; width: 100%; height: 168px; object-fit: cover; }
.stb-home-card__caption { margin: .75rem auto 0; max-width: 360px; color: #34404a; font-size: .95rem; line-height: 1.35; text-align: center; }
.stb-rates { position: relative; padding: 1rem .5rem 0; min-height: 200px; }
.stb-rates::after {
    content: "\F012A";
    font: normal normal normal 10rem/1.5 "Material Design Icons";
    position: absolute; right: 3%; top: 50%; transform: translateY(-52%);
    color: #34404a; opacity: .07; pointer-events: none;
}
.stb-rates__row {
    position: relative; z-index: 1; display: grid; grid-template-columns: 62px 62px 1fr 1fr;
    align-items: center; column-gap: 1rem; min-height: 46px; color: #34404a; font-size: 1.125rem;
}
.stb-rates__row img { width: 44px; height: auto; }

.stb-rates__shimmer {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0;
}

.stb-rates__shimmer[hidden] {
    display: none;
}

.stb-rates__shimmer-row {
    display: grid;
    grid-template-columns: 62px 62px 1fr 1fr;
    align-items: center;
    column-gap: 1rem;
    min-height: 46px;
}

.stb-rates__shimmer-row span {
    display: block;
    height: 1rem;
    border-radius: 4px;
    background: linear-gradient(90deg, #e9eef2 25%, #f5f7f9 50%, #e9eef2 75%);
    background-size: 200% 100%;
    animation: stb-rates-shimmer 1.2s ease-in-out infinite;
}

.stb-rates__shimmer-row span:first-child {
    width: 44px;
    height: 28px;
    border-radius: 2px;
}

.stb-rates__shimmer-row span:nth-child(2) {
    width: 2.5rem;
}

@keyframes stb-rates-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
.stb-home-news-carousel { min-height: 216px; }
.stb-home-news__lead { min-height: 48px; color: #69767e; font-size: 1rem; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.stb-home-news__lead a { color: #69767e; }
.stb-home-news__date { color: var(--stb-magenta); margin-right: .35rem; }
.stb-home-news__body { display: grid; grid-template-columns: 96px 1fr; gap: 1.25rem; align-items: start; margin-top: 1.25rem; }
.stb-home-news__body img { width: 76px; margin: .5rem auto 0; }
.stb-home-news__text { display: flex; flex-direction: column; gap: .25rem; }
/* Fixed 4-line description: clamp caps long teasers, matching min-height floors
   short ones, so every slide's description occupies identical height at any
   width — the carousel no longer changes height as it rotates. */
.stb-home-news__teaser {
    margin: 0; color: #69767e; font-size: 1rem; line-height: 1.25;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4;
    overflow: hidden; min-height: 5rem;
}
.stb-home-news__teaser a { color: #69767e; }
/* Read-more sits on its own reserved line below the clamped teaser, so it is
   never truncated by the clamp regardless of teaser length or viewport width. */
.stb-home-news__more { align-self: start; color: var(--stb-magenta) !important; white-space: nowrap; }
.stb-home-news__nav { display: flex; justify-content: center; align-items: center; gap: .25rem; margin-top: 1.125rem; }
.stb-home-news__nav button {
    border: 0; background: transparent; color: #34404a; min-width: 33px; height: 36px; padding: 0;
    font-size: 1rem; line-height: 36px; text-align: center;
}
.stb-home-news__nav button.active { width: 33px; height: 29px; min-width: 33px; line-height: 29px; background: var(--stb-magenta); color: #fff; border-radius: 50%; font-weight: 700; }
.stb-home-news__empty { color: #69767e; margin: 2.5rem 0 0; }

@media (min-width: 992px) {
    .stb-home-cards > .container-fluid { max-width: 85%; margin-left: auto; margin-right: auto; }
}

/* Wide screens give the card roughly the width the bank's own layout assumes,
   so the watermark can grow to the 13rem they use without being clipped. */
@media (min-width: 1600px) {
    .stb-rates::after { font-size: 13rem; }
}

@media (max-width: 991.98px) {
    .stb-home-cards { padding-bottom: 2rem; }
}

@media (max-width: 575.98px) {
    .stb-home-card { min-height: 280px; padding: 1.25rem; }
    .stb-home-card__head { align-items: flex-start; }
    .stb-home-card__image { height: 150px; }
    .stb-rates__row,
    .stb-rates__shimmer-row { grid-template-columns: 52px 54px 1fr 1fr; column-gap: .75rem; font-size: 1rem; }
    .stb-rates__shimmer-row span:first-child { width: 36px; height: 24px; }
    .stb-home-news__body { grid-template-columns: 74px 1fr; gap: .875rem; }
    .stb-home-news__body img { width: 60px; }
}

/* ============================ DIGITAL CHANNELS ============================ */
.stb-digital { background: #fbfcfd; border-top: 2px solid var(--stb-magenta); padding: 3rem 0; }
.stb-digital .block-title h3 { margin-bottom: 2rem; color: #98a6ad; }
.stb-channel {
    display: block; text-decoration: none; cursor: pointer;
    background: #fbfbfb; border: 1px solid #e9edf2; border-radius: 0; padding: 2.5rem 1.5rem;
    text-align: center; height: 100%;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.stb-channel:hover { box-shadow: 0 .75rem 1.5rem rgba(73,79,84,.12); transform: translateY(-3px); border-color: #d9e3e9; }
.stb-channel:hover h4, .stb-channel:hover p, .stb-channel:hover .stb-channel-icon { color: #6e818a; }
.stb-channel h4 { color: #98a6ad; font-weight: 700; text-transform: uppercase; font-size: 1.2rem; letter-spacing: .5px; margin-bottom: 1.25rem; }
.stb-channel .stb-channel-icon { font-size: 2.75rem; color: #b9c1cc; margin: .25rem 0 1.5rem; }
/* Dollar-in-circle: MDI 7.4 has no currency-usd-circle glyph, so draw the ring in CSS. */
.stb-channel .stb-channel-icon--circle { display: flex; justify-content: center; }
.stb-channel .stb-channel-icon--circle .mdi { display: inline-flex; align-items: center; justify-content: center; width: 4.25rem; height: 4.25rem; font-size: 1.9rem; border: 2px solid currentColor; border-radius: 50%; }
.stb-channel p { color: #98a6ad; font-size: 1rem; margin: 0; line-height: 1.5; }

@media (max-width: 991.98px) {
    .stb-digital > .container,
    .stb-info-cards > .container,
    .stb-promos > .container {
        max-width: 100%;
    }

    .stb-digital .block-title h3 {
        margin-bottom: 1.5rem;
    }

    .stb-channel {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }
}

/* ============================ INFO CARDS (reusable component) ============================ */
/* Backoffice-editable card grid (Views/Partials/components/_InfoCards.cshtml).
    Visually matches .stb-channel and supports either editor-supplied media icons or icon classes. */
.stb-info-cards { background: #fbfcfd; border-top: 2px solid var(--stb-magenta); padding: 3rem 0; }
.stb-info-cards .block-title h3 { margin-bottom: 2rem; color: #98a6ad; }
.stb-info-card {
    display: flex; flex-direction: column; text-decoration: none; cursor: pointer;
    background: #fbfbfb; border: 1px solid #e9edf2; border-radius: 0; padding: 2.5rem 1.5rem;
    text-align: center; height: 100%;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.stb-info-card--static { cursor: default; }
a.stb-info-card:hover { box-shadow: 0 .75rem 1.5rem rgba(73,79,84,.12); transform: translateY(-3px); border-color: #d9e3e9; }
a.stb-info-card:hover .stb-info-card__title, a.stb-info-card:hover .stb-info-card__caption, a.stb-info-card:hover .stb-info-card__glyph { color: #6e818a; }
.stb-info-card__icon { display: block; width: auto; height: 56px; max-width: 100%; margin: .25rem auto 1.5rem; object-fit: contain; }
.stb-info-card__glyph { display: block; font-size: 2.75rem; color: #b9c1cc; margin: .25rem 0 1.5rem; }
.stb-info-card__glyph--circle { display: inline-flex; align-items: center; justify-content: center; width: 4.25rem; height: 4.25rem; font-size: 1.9rem; border: 2px solid currentColor; border-radius: 50%; }
.stb-info-card__title { order: 1; color: #98a6ad; font-weight: 700; text-transform: uppercase; font-size: 1.2rem; letter-spacing: .5px; margin-bottom: 1.25rem; }
.stb-info-card__icon, .stb-info-card__glyph { order: 2; }
.stb-info-card__caption { order: 3; color: #98a6ad; font-size: 1rem; margin: 0; line-height: 1.5; }

@media (max-width: 991.98px) {
    .stb-info-card { padding-top: 1.25rem; padding-bottom: 1.25rem; }
}

/* ============================ FAVOURITE CARDS ============================ */
.stb-favourite-cards { background: #fafbfe; padding: 2.5rem 0; }
.stb-favourite-card__title { text-align: center; color: var(--stb-magenta); font-weight: 700; margin-bottom: 1rem; }
.stb-favourite-card__link { display: block; overflow: hidden; border-radius: 0; }
.stb-favourite-card__image { border-radius: 0; transition: transform .3s ease, box-shadow .3s ease; }
.stb-favourite-card__link:hover .stb-favourite-card__image { transform: scale(1.03); box-shadow: 0 .5rem 1.25rem rgba(0,0,0,.25); }

/* ============================ FOOTER ============================ */
/* No gap between the promos section and the footer. */
.footer { background: #ebebeb; padding: 2.5rem 0 1.5rem; margin-top: 0; font-size: 1rem; }
.footer h4 { color: #cd007a; font-weight: 700; text-transform: uppercase; font-size: 1.125rem; margin-bottom: 1rem; }
.footer .footer-links { list-style: none; padding: 0; margin: 0; }
.footer .footer-links li { margin-bottom: 0; line-height: 1.7; }
.footer .footer-links a { color: var(--stb-muted); }
.footer .footer-links a:hover { color: var(--stb-magenta); }
.footer hr { border-top: 1px solid rgba(57,57,57,.1); opacity: 1; }
.footer .footer-social { display: inline-flex; gap: .5rem; padding: 0; margin: 0; }
.footer .footer-social a { color: #98a6ad; font-size: 1.25rem; }
.footer .footer-social a:hover { color: var(--stb-magenta); }
.footer .footer-bottom-logo { max-height: 96px; }

/* ============================ BACK TO TOP ============================ */
.stb-back-to-top {
    position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: var(--stb-magenta); color: #fff; font-size: 1.2rem; display: none; align-items: center; justify-content: center;
    z-index: 1030; box-shadow: 0 6px 16px rgba(0,0,0,.25); cursor: pointer;
}
.stb-back-to-top.show { display: inline-flex; }
.stb-back-to-top:hover { background: var(--stb-magenta-dark); }

/* Cookie-consent styles (.stb-cookie-*) live in stb-shared.site.css. */

/* ===================== News ===================== */
.stb-news-title { font-weight: 700; }

.stb-news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 0;
    border-radius: 0;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow .15s ease;
}
.stb-news-card:hover { box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .06); }
.stb-news-card__media { display: block; }
.stb-news-card__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    display: block;
}
.stb-news-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.25rem;
}
.stb-news-card__title { font-size: 1.05rem; font-weight: 500; line-height: 1.35; margin: 0 0 .6rem; }
.stb-news-card__title a { color: var(--stb-magenta); text-decoration: none; font-weight: 700; }
.stb-news-card__title a:hover { color: var(--stb-magenta-dark); text-decoration: underline; }
.stb-news-card__summary { color: #6c757d; font-size: .92rem; line-height: 1.5; margin: 0; }
/* Date is a footer: pinned to the bottom of the card with a divider above it. */
.stb-news-card__date {
    color: var(--stb-muted);
    font-size: .85rem;
    margin: 0;
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid var(--stb-border);
}

@media (min-width: 768px) {
    .stb-news-card {
        height: 510px;
    }

    /* Fixed image height so the body area (and therefore the date position)
       is identical on every card, regardless of column width. */
    .stb-news-card__media img {
        aspect-ratio: auto;
        height: 200px;
    }

    .stb-news-card__title,
    .stb-news-card__summary {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .stb-news-card__title {
        -webkit-line-clamp: 3;
    }

    /* Clamp the summary so title + summary + date always fit inside the card
       and the date (pinned to the bottom) is never clipped. */
    .stb-news-card__summary {
        -webkit-line-clamp: 6;
    }
}

/* News item detail */
.stb-news > .container-fluid:first-child,
.stb-newsitem > .container-fluid:first-child,
.stb-breadcrumb-bar {
    padding-top: 0 !important;
    padding-bottom: 0;
    padding-left: 15px;
    padding-right: 15px;
}
.stb-newsitem__crumbs { background: transparent; padding: .375rem 0; margin: 0; font-size: .875rem; line-height: 1.5; }
.stb-newsitem__crumbs a { color: var(--stb-magenta); text-decoration: none; }
.stb-newsitem__crumbs a:hover { text-decoration: underline; }
.stb-newsitem__crumbs .breadcrumb-item.active { color: var(--stb-muted); }

/* Full-width hero banner (1600x250-style) with the section label + category overlaid on the
   left. The banner image has white space on the left where the caption sits. */
.stb-news-hero__inner { position: relative; overflow: visible; }
.stb-news-hero__img { width: 100%; height: auto; display: block; aspect-ratio: auto 1600 / 250; }
.stb-news-hero__caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
}
.stb-news-hero__caption .container-fluid { pointer-events: auto; }
.stb-news-hero__text {
    display: block;
    width: min(62%, 720px);
    text-align: center;
    margin: 0 auto 0 6%;
}
.stb-news-hero__section {
    color: var(--stb-muted);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: .03em;
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    margin: 0;
}
.stb-news-hero__category {
    color: var(--stb-magenta);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .03em;
    font-size: clamp(1.45rem, 2.5vw, 2.15rem);
    margin: 0;
}
.stb-news-hero__section + .stb-news-hero__category {
    margin-top: .75rem;
    padding-top: .75rem;
    position: relative;
}
.stb-news-hero__section + .stb-news-hero__category::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    height: 1px;
    background: #dfe5ea;
}
/* On small screens show the full 1600x250 banner, then place the caption below it. */
@media (max-width: 767.98px) {
    .stb-news-hero__caption { position: static; display: block; }
    .stb-news-hero__caption .container-fluid { padding-top: 1rem; padding-bottom: 1rem; }
    .stb-news-hero__text { width: 100%; max-width: 100%; margin: 0; }
    .stb-news-hero__section { font-size: 1.4rem; line-height: 1.2; }
    .stb-news-hero__category { font-size: 1.55rem; line-height: 1.2; }
}

/* The whole news page sits on a light lavender background (the hero banner is a
   white image, so it still reads as a white band). */
.stb-news, .stb-newsitem { background: #fafbfe; }
.stb-newsitem__content { padding: 1.5rem 0 2.5rem; }

.stb-news-list { --bs-gutter-x: 1.875rem; --bs-gutter-y: 1.875rem; }

.stb-news-list > .col {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 576px) {
    .stb-news-list > .col {
        width: 50%;
    }
}

@media (min-width: 768px) {
    .stb-news > .container-fluid:first-child,
    .stb-newsitem > .container-fluid:first-child,
    .stb-breadcrumb-bar {
        display: block !important;
    }

    .stb-news-list > .col {
        width: 33.333333%;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .stb-newsitem__content > .container-fluid {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .stb-newsitem__content > .container-fluid > .row:not(.stb-news-layout--no-sidebar) > :not(.stb-news-sidebar),
    .stb-newsitem__content .stb-news-layout:not(.stb-news-layout--no-sidebar) > :not(.stb-news-sidebar) {
        flex: 0 0 auto;
        width: 66.666667%;
    }

    .stb-newsitem__content > .container-fluid > .row > .stb-news-sidebar,
    .stb-newsitem__content .stb-news-layout > .stb-news-sidebar {
        flex: 0 0 auto;
        width: 33.333333%;
        margin-top: 2.0625rem;
    }

    .stb-news-list {
        margin-left: 0;
        margin-right: 0;
        --bs-gutter-x: 1.5rem;
    }

    .stb-news-list > .col {
        padding-left: calc(var(--bs-gutter-x) * .5);
        padding-right: calc(var(--bs-gutter-x) * .5);
        width: 50%;
    }
}

@media (min-width: 992px) {
    .stb-newsitem__content > .container-fluid > .row:not(.stb-news-layout--no-sidebar) > :not(.stb-news-sidebar),
    .stb-newsitem__content .stb-news-layout:not(.stb-news-layout--no-sidebar) > :not(.stb-news-sidebar) {
        flex: 0 0 auto;
        width: 75%;
    }

    .stb-newsitem__content > .container-fluid > .row > .stb-news-sidebar,
    .stb-newsitem__content .stb-news-layout > .stb-news-sidebar {
        flex: 0 0 auto;
        width: 25%;
    }
}

@media (max-width: 767.98px) {
    .stb-news-list { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
}

/* News listing pagination — rounded pills, magenta active circle */
.stb-news .pagination {
    gap: .5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.stb-news .pagination .page-item { margin: 0; }

.stb-news .pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0;
    padding: 0 .6rem;
    border: none;
    border-radius: 999px;
    background: #eef0f3;
    color: var(--stb-ink);
    font-weight: 600;
    font-size: .95rem;
    line-height: 1;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.stb-news .pagination .page-link:hover {
    background: #e2e5ea;
    color: var(--stb-magenta);
    z-index: auto;
}

.stb-news .pagination .page-item.active .page-link {
    background: var(--stb-magenta);
    color: #fff;
    box-shadow: 0 2px 6px rgba(236, 0, 140, .35);
}

.stb-news .pagination .page-item.disabled .page-link {
    background: #f4f5f7;
    color: #c3c7cd;
    opacity: 1;
}

.stb-news .pagination .page-link:focus {
    outline: none;
    box-shadow: 0 0 0 .2rem rgba(236, 0, 140, .25);
}

.stb-newsitem__main {
    background: transparent;
}

.stb-newsitem__title { font-weight: 700; margin-bottom: .25rem; }
.stb-newsitem__date { color: #6c757d; font-size: .9rem; margin-bottom: 1.5rem; }
.stb-newsitem__body { line-height: 1.7; color: #494f54; }
.stb-newsitem__body a { color: var(--stb-magenta); text-decoration: none; }
.stb-newsitem__body a:hover { color: var(--stb-magenta-dark); text-decoration: underline; }
.stb-newsitem__body img { max-width: 100%; height: auto; }
.stb-newsitem__body table {
    background: #fafbfe;
    border: 1px solid #e3eaef;
    border-collapse: collapse;
    color: #494f54;
    display: table;
    font-size: 1rem;
    line-height: 1.5;
    margin: 1rem 0 1.5rem;
    max-width: 100%;
    table-layout: fixed;
    width: 100%;
}
.stb-newsitem__body colgroup,
.stb-newsitem__body colgroup[style] {
    width: 100%;
}
.stb-newsitem__body col,
.stb-newsitem__body col[style] {
    min-width: 0;
    width: auto;
}
.stb-newsitem__body th,
.stb-newsitem__body td {
    border: 1px solid #e3eaef;
    box-sizing: border-box;
    padding: .45rem .75rem;
    text-align: left;
    vertical-align: middle;
    width: auto;
}
.stb-newsitem__body th {
    background: #f1f3fa;
    color: #494f54;
    font-weight: 700;
}
.stb-newsitem__body th * { color: inherit; }
.stb-newsitem__body thead tr:first-child th { background: #eaeef7; }
.stb-newsitem__body tbody tr:nth-child(odd) td { background: #f1f3fa; }
.stb-newsitem__body tbody td { color: #494f54; font-weight: 400; }
.stb-newsitem__body .stb-rte-custom-paragraph {
    background: transparent;
    border: 0;
    box-sizing: border-box;
    clear: both;
    display: block;
    margin: 1rem 0 1.5rem;
    max-width: 100%;
    width: 100%;
}
.stb-newsitem__body .stb-rte-custom-paragraph > :first-child { margin-top: 0; }
.stb-newsitem__body .stb-rte-custom-paragraph > :last-child { margin-bottom: 0; }
.stb-newsitem__body .stb-rte-bootstrap-row {
    background: transparent;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}
.stb-newsitem__body .stb-rte-bootstrap-column {
    background: transparent;
    margin-bottom: 0;
    min-height: 1rem;
}
.stb-newsitem__body .stb-rte-bootstrap-row > p,
.stb-newsitem__body .stb-rte-bootstrap-row > div,
.stb-newsitem__body .stb-rte-bootstrap-row > blockquote,
.stb-newsitem__body .stb-rte-bootstrap-row > ul,
.stb-newsitem__body .stb-rte-bootstrap-row > ol {
    margin-bottom: 0;
}
.stb-newsitem__body .stb-rte-bootstrap-column > :first-child { margin-top: 0; }
.stb-newsitem__body .stb-rte-bootstrap-column > :last-child { margin-bottom: 0; }
.stb-newsitem__body .stb-rte-product-section-title {
    border-bottom: 1px solid #dbe4eb;
    color: #28a9d5;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: .01em;
    margin: 2rem 0 0;
    padding-bottom: 1rem;
    text-transform: uppercase;
}
.stb-newsitem__body .stb-rte-product-item,
.stb-newsitem__body .stb-rte-product-row,
.stb-newsitem__body p.stb-rte-product-media {
    align-items: center;
    background: transparent;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid #dbe4eb;
    display: block;
    margin-bottom: 0;
    margin-top: 0;
    min-height: 7rem;
    padding: 1rem 0;
}
.stb-newsitem__body .stb-rte-product-item > :first-child { margin-top: 0; }
.stb-newsitem__body .stb-rte-product-item > :last-child { margin-bottom: 0; }
.stb-newsitem__body .stb-rte-product-media,
.stb-newsitem__body .stb-rte-product-content { border: 0; margin-bottom: 0; }
.stb-newsitem__body .stb-rte-product-media { text-align: center; }
.stb-newsitem__body .stb-rte-product-item figure,
.stb-newsitem__body .stb-rte-product-row figure,
.stb-newsitem__body .stb-rte-product-media figure {
    display: block;
    float: left;
    margin: 0 1.5rem 1rem 0;
    max-width: 8rem;
    width: auto;
}
.stb-newsitem__body .stb-rte-product-item img,
.stb-newsitem__body .stb-rte-product-row img,
.stb-newsitem__body .stb-rte-product-media img {
    display: block;
    float: left;
    height: auto;
    margin: 0 1.5rem 1rem 0;
    max-height: 6rem;
    max-width: 8rem;
    object-fit: contain;
    width: auto;
}
.stb-newsitem__body .stb-rte-product-item > p { margin-bottom: .75rem; }
.stb-newsitem__body .stb-rte-product-item > div:empty,
.stb-newsitem__body .stb-rte-product-row > div:empty {
    display: none;
}
.stb-newsitem__body .stb-rte-product-content > :first-child { margin-top: 0; }
.stb-newsitem__body .stb-rte-product-content > :last-child { margin-bottom: 0; }
.stb-newsitem__body .stb-rte-product-content a:first-child,
.stb-newsitem__body .stb-rte-product-content p:first-child a:first-child {
    color: var(--stb-magenta);
    font-weight: 500;
}
.stb-newsitem__body .stb-rte-product-item + p:empty,
.stb-newsitem__body .stb-rte-product-row + p:empty,
.stb-newsitem__body .stb-rte-product-item + p:has(> br:only-child),
.stb-newsitem__body .stb-rte-product-row + p:has(> br:only-child) {
    display: none;
}
.stb-newsitem__body .stb-rte-product-item + h3.stb-rte-faq-question,
.stb-newsitem__body .stb-rte-product-row + h3.stb-rte-faq-question,
.stb-newsitem__body .stb-rte-product-item + p + h3.stb-rte-faq-question,
.stb-newsitem__body .stb-rte-product-row + p + h3.stb-rte-faq-question,
.stb-newsitem__body .stb-rte-product-item + p + p + h3.stb-rte-faq-question,
.stb-newsitem__body .stb-rte-product-row + p + p + h3.stb-rte-faq-question {
    margin-top: 2rem;
}
.stb-newsitem__body p:empty:has(+ h3.stb-rte-faq-question),
.stb-newsitem__body p:has(> br:only-child):has(+ h3.stb-rte-faq-question) {
    display: none;
}
@media (max-width: 767.98px) {
    .stb-newsitem__body .stb-rte-product-row { row-gap: .75rem; }
    .stb-newsitem__body .stb-rte-product-media { text-align: left; }
}
.stb-newsitem__body h2,
.stb-newsitem__body h3,
.stb-newsitem__body h4 {
    color: #343a40;
    font-weight: 700;
    line-height: 1.25;
    margin: 1.75rem 0 .75rem;
}
.stb-newsitem__body h2,
.stb-newsitem__body .stb-rte-heading { font-size: 1.6rem; }
.stb-newsitem__body h2.stb-rte-product-section-title { color: #28a9d5; font-size: 1.45rem; margin: 2rem 0 0; }
.stb-newsitem__body h3,
.stb-newsitem__body .stb-rte-subheading { font-size: 1.25rem; color: var(--stb-magenta); }
.stb-newsitem__body h4,
.stb-newsitem__body .stb-rte-smallheading { font-size: 1.05rem; color: #4f5963; }
.stb-newsitem__body .stb-rte-lead {
    color: #343a40;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.6;
}
.stb-newsitem__body .stb-rte-muted { color: var(--stb-muted); }
.stb-newsitem__body .stb-rte-small { color: var(--stb-muted); font-size: .88rem; line-height: 1.55; }
.stb-newsitem__body .stb-rte-highlight {
    background: #fff2f8;
    color: #343a40;
    padding: .05rem .25rem;
}
.stb-newsitem__body .stb-rte-color-magenta { color: var(--stb-magenta); }
.stb-newsitem__body .stb-rte-color-petrol { color: #28a9d5; }
.stb-newsitem__body .stb-rte-color-green { color: var(--stb-green); }
.stb-newsitem__body .stb-rte-color-purple { color: var(--stb-purple); }
.stb-newsitem__body .stb-rte-color-gold { color: var(--stb-warning-dark); }
.stb-newsitem__body .stb-rte-color-muted { color: var(--stb-muted); }
.stb-newsitem__body .stb-rte-background-magenta,
.stb-newsitem__body .stb-rte-background-petrol,
.stb-newsitem__body .stb-rte-background-green,
.stb-newsitem__body .stb-rte-background-purple,
.stb-newsitem__body .stb-rte-background-gold,
.stb-newsitem__body .stb-rte-background-muted,
.stb-newsitem__body .stb-rte-background-light,
.stb-newsitem__body .stb-rte-background-white,
.stb-newsitem__body .stb-rte-background-transparent {
    padding: .75rem 1rem;
}
.stb-newsitem__body .stb-rte-background-magenta { background: var(--stb-magenta); color: #fff; }
.stb-newsitem__body .stb-rte-background-petrol { background: #28a9d5; color: #fff; }
.stb-newsitem__body .stb-rte-background-green { background: var(--stb-green); color: #343a40; }
.stb-newsitem__body .stb-rte-background-purple { background: var(--stb-purple); color: #fff; }
.stb-newsitem__body .stb-rte-background-gold { background: var(--stb-warning-dark); color: #343a40; }
.stb-newsitem__body .stb-rte-background-muted { background: var(--stb-muted); color: #fff; }
.stb-newsitem__body .stb-rte-background-light { background: #e9ecef; color: #343a40; }
.stb-newsitem__body .stb-rte-background-white { background: #fff; color: #343a40; }
.stb-newsitem__body .stb-rte-background-transparent { background: transparent; color: inherit; }
.stb-newsitem__body .stb-rte-bg-magenta,
.stb-newsitem__body .stb-rte-bg-petrol,
.stb-newsitem__body .stb-rte-bg-green,
.stb-newsitem__body .stb-rte-bg-gold {
    color: #343a40;
    padding: .05rem .25rem;
}
.stb-newsitem__body .stb-rte-bg-magenta { background: #fff2f8; }
.stb-newsitem__body .stb-rte-bg-petrol { background: #e8f7f7; }
.stb-newsitem__body .stb-rte-bg-green { background: #f3faeb; }
.stb-newsitem__body .stb-rte-bg-gold { background: #fff7df; }
.stb-newsitem__body .stb-rte-callout-info,
.stb-newsitem__body .stb-rte-callout-important,
.stb-newsitem__body .stb-rte-quote {
    background: #fff;
    border-left: 4px solid #28a9d5;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
}
.stb-newsitem__body .stb-rte-callout-important { border-left-color: var(--stb-magenta); background: #fff8fc; }
.stb-newsitem__body .stb-rte-quote {
    border-left-color: var(--stb-green);
    color: #343a40;
    font-size: 1.05rem;
    font-style: italic;
}
.stb-newsitem__body .stb-rte-faq {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #28a9d5;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.75rem 0 1.25rem;
    padding: 0;
}
.stb-newsitem__body h3.stb-rte-faq-question {
    align-items: center;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #d9e1e8;
    border-radius: 0;
    color: #1f2933;
    cursor: pointer;
    display: flex;
    font-size: 1rem;
    font-weight: 700;
    gap: .85rem;
    line-height: 1.4;
    margin: .6rem 0 0;
    min-height: 3.75rem;
    padding: 1rem 3.25rem 1rem 1.5rem;
    position: relative;
}
.stb-newsitem__body h3.stb-rte-faq-question::before {
    align-items: center;
    background: var(--stb-magenta);
    border-radius: 50%;
    color: #fff;
    content: "?";
    display: inline-flex;
    flex: 0 0 1.9rem;
    font-size: 1rem;
    font-weight: 700;
    height: 1.9rem;
    justify-content: center;
    width: 1.9rem;
}
.stb-newsitem__body h3.stb-rte-faq-question::after {
    color: #1f2933;
    content: "\F0142";
    display: inline-block;
    font-family: "Material Design Icons";
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform .18s ease;
}
.stb-newsitem__body h3.stb-rte-faq-question[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(90deg);
}
.stb-newsitem__body h3.stb-rte-faq-question-labeled::before {
    border-radius: 999px;
    content: attr(data-faq-label);
    flex: 0 0 auto;
    font-size: .85rem;
    height: auto;
    min-width: 1.9rem;
    padding: .3rem .6rem;
    white-space: nowrap;
    width: auto;
}
.stb-newsitem__body .stb-rte-faq-answer {
    background: #fff;
    border: 0;
    border-radius: 0;
    color: #4f5963;
    margin: 0 0 1rem;
    padding: 1.35rem 1.5rem 1.5rem;
}
.stb-newsitem__body h3.stb-rte-faq-question + .stb-rte-faq-answer {
    margin-top: 0;
}
.stb-newsitem__body .stb-rte-faq-answer[hidden] { display: none; }
.stb-newsitem__body .stb-rte-faq-answer > :last-child { margin-bottom: 0; }
.stb-newsitem__body .stb-rte-faq-answer .tableWrapper,
.stb-newsitem__body .stb-rte-faq-answer .table-wrapper,
.stb-newsitem__body .stb-rte-faq-answer figure:has(> table),
.stb-newsitem__body .stb-rte-faq-answer table {
    max-width: 100%;
    min-width: 100%;
    width: 100%;
}
.stb-newsitem__body .stb-rte-faq-answer table {
    background: #fafbfe;
    border: 1px solid #e3eaef;
    border-collapse: collapse;
    color: #494f54;
    display: table;
    font-size: 1rem;
    line-height: 1.5;
    margin: 1rem 0;
    table-layout: fixed;
}
.stb-newsitem__body .stb-rte-faq-answer th,
.stb-newsitem__body .stb-rte-faq-answer td {
    border: 1px solid #e3eaef;
    box-sizing: border-box;
    padding: .45rem .75rem;
    text-align: left;
    vertical-align: middle;
    width: auto;
}
.stb-newsitem__body .stb-rte-faq-answer th {
    background: #f1f3fa;
    color: #494f54;
    font-weight: 700;
}
.stb-newsitem__body .stb-rte-faq-answer thead tr:first-child th,
.stb-newsitem__body .stb-rte-faq-answer tbody tr:nth-child(odd) td {
    background: #f1f3fa;
}
.stb-newsitem__body .stb-rte-faq-answer tbody td {
    color: #494f54;
    font-weight: 400;
}
.stb-newsitem__body .stb-rte-faq-answer ul,
.stb-newsitem__body .stb-rte-faq-answer ol {
    margin: .85rem 0 0;
    padding-left: 1.25rem;
}
.stb-newsitem__body .stb-rte-faq-answer li { margin-bottom: .25rem; }
.stb-newsitem__body .stb-rte-faq-answer li:last-child { margin-bottom: 0; }
.stb-newsitem__body .stb-rte-faq-answer li > p { margin: 0; }

/* Nested FAQ (question/answer pair authored inside another answer): indent as a sub-level. */
.stb-newsitem__body .stb-rte-faq-answer h3.stb-rte-faq-question {
    background: #fafbfe;
    border: 1px solid #e3eaef;
    border-radius: 6px;
    font-size: .9rem;
    gap: .65rem;
    margin: 1rem 0 0 1.5rem;
    min-height: auto;
    padding: .75rem 2.75rem .75rem 1.25rem;
}
.stb-newsitem__body .stb-rte-faq-answer h3.stb-rte-faq-question::before {
    flex: 0 0 1.5rem;
    font-size: .8rem;
    height: 1.5rem;
    width: 1.5rem;
}
.stb-newsitem__body .stb-rte-faq-answer h3.stb-rte-faq-question::after {
    font-size: 1.05rem;
    right: 1rem;
}
.stb-newsitem__body .stb-rte-faq-answer h3.stb-rte-faq-question[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(90deg);
}
.stb-newsitem__body .stb-rte-faq-answer h3.stb-rte-faq-question-labeled::before {
    border-radius: 999px;
    flex: 0 0 auto;
    font-size: .7rem;
    height: auto;
    min-width: 1.5rem;
    padding: .25rem .5rem;
    width: auto;
}
.stb-newsitem__body .stb-rte-faq-answer .stb-rte-faq-answer {
    margin: 0 0 1rem 1.5rem;
    padding: 1rem 1.25rem 1.25rem;
}

.stb-newsitem__body .stb-rte-checklist,
.stb-newsitem__body .stb-rte-compact-list { padding-left: 0; list-style: none; }
.stb-newsitem__body .stb-rte-checklist li,
.stb-newsitem__body .stb-rte-compact-list li { margin-bottom: .4rem; padding-left: 1.5rem; position: relative; }
.stb-newsitem__body .stb-rte-checklist li::before {
    color: var(--stb-green);
    content: "\2713";
    font-weight: 700;
    left: 0;
    position: absolute;
}
.stb-newsitem__body .stb-rte-compact-list li { margin-bottom: .2rem; }
.stb-newsitem__body .stb-rte-compact-list li::before {
    background: var(--stb-magenta);
    border-radius: 50%;
    content: "";
    height: .35rem;
    left: .25rem;
    position: absolute;
    top: .65rem;
    width: .35rem;
}
.stb-newsitem__body a.stb-rte-button {
    background: var(--stb-magenta);
    border: 1px solid var(--stb-magenta);
    border-radius: .15rem;
    box-shadow: 0 2px 6px 0 rgba(236, 0, 140, .5);
    color: #fff;
    display: inline-block;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    margin: .35rem .35rem .35rem 0;
    padding: .45rem .9rem;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    transition: transform .18s ease;
}
.stb-newsitem__body a.stb-rte-button:hover {
    background: #c60075;
    border-color: #b9006e;
    color: #fff;
    text-decoration: none;
}
.stb-newsitem__body a.stb-rte-button span,
.stb-newsitem__body a.stb-rte-button-info span,
.stb-newsitem__body a.stb-rte-button-secondary span,
.stb-newsitem__body a.stb-rte-button-secondary-dark span {
    background: transparent !important;
    color: inherit !important;
    font: inherit !important;
}
.stb-newsitem__body a.stb-rte-button-info {
    background: var(--stb-info);
    border: 1px solid var(--stb-info);
    border-radius: .15rem;
    box-shadow: 0 2px 6px 0 rgba(57, 175, 209, .45);
    color: #fff;
    display: inline-block;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    margin: .35rem .35rem .35rem 0;
    padding: .45rem .9rem;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}
.stb-newsitem__body a.stb-rte-button-info:hover {
    background: var(--stb-info-dark);
    border-color: var(--stb-info-dark);
    color: #fff;
    text-decoration: none;
}
.stb-newsitem__body a.stb-rte-button-secondary,
.stb-newsitem__body a.stb-rte-button-secondary-dark {
    background: #e3eaef;
    border: 1px solid #e3eaef;
    border-radius: .15rem;
    box-shadow: 0 2px 6px 0 rgba(227, 234, 239, .5);
    display: inline-block;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    margin: .35rem .35rem .35rem 0;
    padding: .45rem .9rem;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}
.stb-newsitem__body a.stb-rte-button-secondary { color: var(--stb-magenta); }
.stb-newsitem__body a.stb-rte-button-secondary-dark { color: #313a46; }
.stb-newsitem__body a.stb-rte-button-secondary:hover,
.stb-newsitem__body a.stb-rte-button-secondary-dark:hover {
    background: #cbd8e1;
    border-color: #c3d2dc;
    text-decoration: none;
}
.stb-newsitem__body a.stb-rte-button-secondary:hover {
    color: var(--stb-magenta);
}
.stb-newsitem__body a.stb-rte-button-secondary-dark:hover {
    color: #313a46;
}
.stb-newsitem__body a.stb-rte-website-embed {
    align-items: center;
    background: #fff;
    border: 1px solid #d9e1e8;
    color: #28a9d5;
    display: inline-flex;
    font-weight: 700;
    gap: .5rem;
    margin: .5rem 0;
    padding: .75rem 1rem;
}
.stb-newsitem__body a.stb-rte-website-embed::before {
    content: "\F01F0";
    font-family: "Material Design Icons";
    font-weight: 400;
}
.stb-newsitem__body a.stb-rte-website-embed:hover { color: #1f8eb5; text-decoration: none; }
.stb-newsitem__body a.stb-rte-youtube-embed {
    align-items: center;
    background: #fff;
    border: 1px solid #d9e1e8;
    color: var(--stb-magenta);
    display: inline-flex;
    font-weight: 700;
    gap: .5rem;
    margin: .5rem 0;
    padding: .75rem 1rem;
}
.stb-newsitem__body a.stb-rte-youtube-embed::before {
    content: "\F05C3";
    font-family: "Material Design Icons";
    font-weight: 400;
}
.stb-newsitem__body a.stb-rte-youtube-embed:hover { color: var(--stb-magenta-dark); text-decoration: none; }
.stb-website-embed {
    margin: 1.5rem 0;
}
.stb-website-embed__bar {
    align-items: center;
    color: var(--stb-muted);
    display: inline-flex;
    font-size: .88rem;
    font-weight: 600;
    gap: .4rem;
    margin-bottom: .5rem;
}
.stb-website-embed__bar::before {
    color: #28a9d5;
    content: "\F01F0";
    font-family: "Material Design Icons";
    font-size: 1.2rem;
    font-weight: 400;
}
.stb-website-embed--pdf .stb-website-embed__bar::before {
    color: var(--stb-magenta);
    content: "\F0226";
}
.stb-website-embed--map .stb-website-embed__bar::before {
    color: var(--stb-green);
    content: "\F034E";
}
.stb-website-embed__frame {
    background: #fff;
    border: 1px solid #d9e1e8;
    display: block;
    height: 520px;
    width: 100%;
}
.stb-website-embed--pdf .stb-website-embed__frame { height: 720px; }
.stb-website-embed--map .stb-website-embed__frame { height: 420px; }
.stb-website-embed__fallback {
    color: var(--stb-muted);
    font-size: .85rem;
    margin-top: .5rem;
}
.stb-website-embed__fallback a { font-weight: 700; }
.stb-youtube-embed {
    margin: 1.5rem 0;
    max-width: 640px;
}
.stb-youtube-embed__frame {
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
    width: 100%;
}
.stb-newsitem__body table {
    background: #fafbfe;
    border: 1px solid #e3eaef;
    border-collapse: collapse;
    color: #494f54;
    display: table;
    font-size: 1rem;
    line-height: 1.5;
    margin: 1rem 0 1.5rem;
    max-width: 100%;
    table-layout: fixed;
    width: 100%;
}
.stb-newsitem__body colgroup,
.stb-newsitem__body colgroup[style] {
    width: 100%;
}
.stb-newsitem__body col,
.stb-newsitem__body col[style] {
    min-width: 0;
    width: auto;
}
.stb-newsitem__body th,
.stb-newsitem__body td {
    border: 1px solid #e3eaef;
    box-sizing: border-box;
    padding: .45rem .75rem;
    text-align: left;
    vertical-align: middle;
    width: auto;
}
.stb-newsitem__body th {
    background: #f1f3fa;
    color: #494f54;
    font-weight: 700;
}
.stb-newsitem__body th * { color: inherit; }
.stb-newsitem__body thead tr:first-child th { background: #eaeef7; }
.stb-newsitem__body tbody tr:nth-child(odd) td { background: #f1f3fa; }
.stb-newsitem__body tbody td { color: #494f54; font-weight: 400; }
@media (max-width: 767.98px) {
    /* Lock column widths so no single column can push the others off-screen. */
    .stb-newsitem__body table {
        table-layout: fixed;
        white-space: normal;
    }
    .stb-newsitem__body th,
    .stb-newsitem__body td {
        white-space: normal;
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

/* Detail sidebar: apply button + dynamic promo box + contact box */
.stb-news-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.stb-news-sidebar__apply {
    display: block;
    text-align: center;
    background: var(--stb-magenta);
    color: #fff;
    font-weight: 600;
    padding: .85rem 1rem;
    border-radius: 0;
    text-decoration: none;
}
.stb-news-sidebar__apply:hover { background: var(--stb-magenta-dark); color: #fff; }

.stb-news-promo {
    background: #2ba7ce;
    color: #fff;
    border-radius: 0;
    padding: 1.5rem;
}
.stb-news-promo__title {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .03em;
    margin: 0 0 1rem;
}
.stb-news-promo__list { margin: 0; padding-left: 1.2rem; }
.stb-news-promo__list li { margin-bottom: 0; }
.stb-news-promo__list a { color: #fff; text-decoration: none; }
.stb-news-promo__list a:hover { text-decoration: underline; }

.stb-contact-card {
    border-radius: 4px;
    background: #fff;
    text-align: center;
    overflow: hidden;
}
.stb-contact-card__icon { color: var(--stb-slate); font-size: 2.5rem; line-height: 1; padding: 1.5rem 1rem 1.25rem; }
.stb-contact-card__title {
    background: #e3eaef;
    color: var(--stb-slate);
    font-weight: 600;
    padding: .65rem 1rem;
}
.stb-contact-card__body { padding: 1.25rem; }
.stb-contact-card__info { color: var(--stb-muted); font-size: .9rem; margin-bottom: 1rem; }
.stb-contact-card__btn {
    display: block;
    background-color: #e3eaef;
    color: #313a46;
    border: 1px solid #e3eaef;
    text-decoration: none;
    padding: .6rem;
    border-radius: 0;
    margin-bottom: .6rem;
    font-size: .9rem;
}
.stb-contact-card__btn:last-child { margin-bottom: 0; }
.stb-contact-card__btn:hover { background-color: #d3dde4; border-color: #d3dde4; color: #313a46; }

/* Magenta panel variant */
.stb-contact-card--magenta {
    margin-top: 28px;
    text-align: center;
    background: var(--stb-magenta);
    color: #fff;
    border-radius: 0;
}
.stb-contact-card--magenta .stb-contact-card__icon {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.9rem;
    line-height: 1;
    padding: 0;
    color: #fff;
}
.stb-contact-card--magenta .stb-contact-card__title {
    padding: 11px 12px;
    background: #e8f0f4;
    color: #34404a;
    font-size: 1rem;
    font-weight: inherit;
}
.stb-contact-card--magenta .stb-contact-card__body { padding: 14px 12px 16px; }
.stb-contact-card--magenta .stb-contact-card__info {
    margin: 0 0 16px;
    font-size: 1rem;
    line-height: 1.35;
    color: #fff;
}
.stb-contact-card--magenta .stb-contact-card__btn {
    margin-top: 8px;
    margin-bottom: 0;
    padding: 6px 8px;
    border: 1px solid rgba(255,255,255,.9);
    background: transparent;
    color: #fff;
    font-size: .85rem;
    line-height: 1.2;
}
.stb-contact-card--magenta .stb-contact-card__btn:hover {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.stb-news-related {
    background: #fff;
    border-radius: 4px;
    padding: 1.5rem;
}
.stb-news-related__title {
    color: #343a40;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
}
.stb-news-related__list { list-style: none; margin: 0; padding: 0; }
.stb-news-related__item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1rem;
}
.stb-news-related__item:last-child { margin-bottom: 0; }
.stb-news-related__thumb {
    flex: 0 0 auto;
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
}
.stb-news-related__thumb img { width: 100%; height: 100%; object-fit: cover; }
.stb-news-related__text { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.stb-news-related__link { color: var(--stb-magenta); text-decoration: none; font-weight: 600; }
.stb-news-related__link:hover { text-decoration: underline; }
.stb-news-related__date { color: var(--stb-muted); font-size: .8rem; }

/* Simple details page */
.stb-details__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: flex-start;
    border-bottom: 1px solid #d9e1e8;
    margin-bottom: 1.25rem;
}

.stb-details__tabs a {
    color: #4f5963;
    flex: 0 0 auto;
    font-weight: 600;
    padding: .85rem 1.25rem .8rem;
    border-bottom: 0;
    text-decoration: none;
    position: relative;
    text-align: left;
    white-space: nowrap;
}

.stb-details__tabs a:hover { color: #343a40; }
.stb-details__tabs a.active { color: #343a40; }
.stb-details__tabs a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #28a9d5;
}

.stb-details__tab-icon {
    display: none;
}

.stb-details__sections { scroll-behavior: smooth; }
.stb-details__section[hidden] { display: none; }
.stb-details__section { scroll-margin-top: 8rem; margin-bottom: 2rem; }
.stb-details__section:last-child { margin-bottom: 0; }

.stb-details__section h2 {
    color: #343a40;
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0 0 1.4rem;
}

.stb-details__sections .stb-newsitem__body h1,
.stb-details__sections .stb-newsitem__body h2,
.stb-details__sections .stb-newsitem__body h3,
.stb-details__sections .stb-newsitem__body h4,
.stb-details__sections .stb-newsitem__body h5,
.stb-details__sections .stb-newsitem__body h6 {
    color: var(--stb-magenta);
    font-size: .95rem;
    font-weight: 700;
    margin: 1.25rem 0 .5rem;
}

.stb-details__sections .stb-newsitem__body h2.stb-rte-product-section-title {
    color: #28a9d5;
    font-size: 1.45rem;
    margin: 2rem 0 0;
}

.stb-details__sections .stb-newsitem__body { line-height: 1.5; }
.stb-details__sections .stb-newsitem__body p { margin-bottom: 1rem; }
.stb-details__sections .stb-newsitem__body ul,
.stb-details__sections .stb-newsitem__body ol {
    margin: 0 0 1rem;
    padding-left: 2.5rem;
}
.stb-details__sections .stb-newsitem__body li { margin-bottom: 0; }
.stb-details__sections .stb-newsitem__body li > p { margin-bottom: 0; }

.stb-details__sections .stb-newsitem__body .stb-rte-faq {
    color: #28a9d5;
    font-size: 1.1rem;
    margin: 1.75rem 0 1.25rem;
}

.stb-details__sections .stb-newsitem__body h3.stb-rte-faq-question {
    color: #1f2933;
    font-size: 1rem;
    margin: .6rem 0 0;
    padding: 1rem 3.25rem 1rem 1.5rem;
}

.stb-details__sections .stb-newsitem__body .stb-rte-faq-answer {
    margin-bottom: 1rem;
}

.stb-details__sections .stb-newsitem__body .stb-rte-faq-answer p { margin-bottom: 0; }
.stb-details__sections .stb-newsitem__body .stb-rte-faq-answer ul,
.stb-details__sections .stb-newsitem__body .stb-rte-faq-answer ol {
    margin: .85rem 0 0;
    padding-left: 1.25rem;
}
.stb-details__sections .stb-newsitem__body .stb-rte-faq-answer li { margin-bottom: .25rem; }
.stb-details__sections .stb-newsitem__body .stb-rte-faq-answer li:last-child { margin-bottom: 0; }

/* Nested FAQ (question/answer pair authored inside another answer): indent as a sub-level. */
.stb-details__sections .stb-newsitem__body .stb-rte-faq-answer h3.stb-rte-faq-question {
    background: #fafbfe;
    border: 1px solid #e3eaef;
    border-radius: 6px;
    font-size: .9rem;
    margin: 1rem 0 0 1.5rem;
    padding: .75rem 2.75rem .75rem 1.25rem;
}
.stb-details__sections .stb-newsitem__body .stb-rte-faq-answer h3.stb-rte-faq-question::before {
    flex: 0 0 1.5rem;
    font-size: .8rem;
    height: 1.5rem;
    width: 1.5rem;
}
.stb-details__sections .stb-newsitem__body .stb-rte-faq-answer h3.stb-rte-faq-question::after {
    font-size: 1.05rem;
    right: 1rem;
}
.stb-details__sections .stb-newsitem__body .stb-rte-faq-answer .stb-rte-faq-answer {
    margin: 0 0 1rem 1.5rem;
}

.stb-faq {
    margin-top: 3rem;
}

.stb-faq__title {
    color: #28a9d5;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
}

.stb-faq__description {
    color: #4f5963;
    margin: -0.75rem 0 1.5rem;
}

.stb-faq__items {
    display: grid;
    gap: .65rem;
}

.stb-faq__item {
    background: #fff;
    border: 1px solid #e3e8ed;
    border-radius: 2px;
    overflow: hidden;
}

.stb-faq__item-title {
    margin: 0;
}

.stb-faq__toggle {
    align-items: center;
    background: #fff;
    border: 0;
    color: #23313d;
    cursor: pointer;
    display: grid;
    font-weight: 700;
    gap: .9rem;
    grid-template-columns: auto 1fr auto;
    line-height: 1.35;
    padding: 1.15rem 1.5rem;
    text-align: left;
    width: 100%;
}

.stb-faq__toggle:hover {
    color: #23313d;
}

.stb-faq__icon {
    align-items: center;
    background: var(--stb-magenta);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1rem;
    font-weight: 700;
    height: 1.9rem;
    justify-content: center;
    width: 1.9rem;
}

.stb-faq__chevron {
    color: #23313d;
    font-size: 1.2rem;
    line-height: 1;
}

.stb-faq__item.active .stb-faq__chevron {
    transform: rotate(180deg);
}

.stb-faq__panel {
    border-top: 1px solid #e3e8ed;
    padding: 1.4rem 1.5rem 1.5rem;
}

.stb-faq__panel[hidden] {
    display: none;
}

.stb-faq__answer > :last-child {
    margin-bottom: 0;
}

.stb-details-related {
    background: #fff;
    border-radius: 4px;
    padding: 1.5rem;
}

.stb-details-related__title {
    color: #343a40;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
}

.stb-details-related__list { list-style: none; margin: 0; padding: 0; }
.stb-details-related__list li { margin-bottom: .35rem; }
.stb-details-related__list li:last-child { margin-bottom: 0; }
.stb-details-related__list a,
.stb-details-related__list span { color: var(--stb-magenta); text-decoration: none; }
.stb-details-related__list a:hover { text-decoration: underline; }

@media (max-width: 767.98px) {
    .stb-details__tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: visible;
    }

    .stb-details__tabs a {
        align-items: center;
        display: flex;
        flex: 0 0 3.875rem;
        justify-content: center;
        min-width: 0;
        padding: .85rem 1rem .75rem;
        text-align: center;
    }

    .stb-details__tabs a.active::after {
        left: 0;
        right: auto;
        width: 100%;
    }

    .stb-details__tab-text { display: none; }

    .stb-details__tab-icon {
        align-items: center;
        background: #6d7c89;
        border-radius: 50%;
        color: #fff;
        display: inline-flex;
        font-size: .75rem;
        font-style: normal;
        font-weight: 700;
        height: .9rem;
        justify-content: center;
        line-height: 1;
        width: .9rem;
    }

    .stb-details__tab-icon::before {
        content: "i";
        font-family: inherit;
    }

    .stb-details__tabs a.active .stb-details__tab-icon {
        background: #4d6173;
    }
}


/* ============================= DEPOSIT CALCULATOR ============================= */
.stb-deposit-calc {
    padding: 2rem 0;
    background-color: #fff;
}

.stb-deposit-calc__inner {
    max-width: 700px;
}

.stb-deposit-calc__title {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--stb-ink);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.stb-deposit-calc__row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.stb-deposit-calc__label {
    flex: 0 0 220px;
    font-weight: 600;
    color: var(--stb-ink);
    font-size: 0.9375rem;
}

.stb-deposit-calc__select,
.stb-deposit-calc__input {
    flex: 1;
    max-width: 480px;
}

.stb-deposit-calc__row--submit {
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.stb-deposit-calc__submit-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
    flex: 1;
}

.stb-deposit-calc__btn {
    background-color: var(--stb-info);
    border: 1px solid var(--stb-info);
    border-radius: 0.25rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.45rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.stb-deposit-calc__btn:hover {
    background-color: var(--stb-info-dark);
    border-color: var(--stb-info-dark);
}

.stb-deposit-calc__error {
    color: var(--stb-danger);
    font-size: 0.875rem;
    font-weight: 500;
}

.stb-deposit-calc__result {
    flex: 1;
    max-width: 480px;
    background: var(--stb-gray-bg);
    border: 1px solid var(--stb-border);
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    color: var(--stb-ink);
    font-size: 0.9375rem;
}

.stb-deposit-calc__disclaimer {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--stb-muted);
    line-height: 1.55;
}

@media (max-width: 575.98px) {
    .stb-deposit-calc__row {
        flex-direction: column;
        align-items: flex-start;
    }
    .stb-deposit-calc__label {
        flex: none;
    }
    .stb-deposit-calc__select,
    .stb-deposit-calc__input,
    .stb-deposit-calc__result {
        max-width: 100%;
        width: 100%;
    }
}

/* Unified calculator: wide product-selector dropdown */
.stb-deposit-calc__select--wide {
    max-width: 600px;
}

/* Unified calculator: field + unit-suffix badge (e.g. "години", "денари") —
   rendered flush against each other as one input-group, not two fields. */
.stb-deposit-calc__field-group {
    flex: 1;
    max-width: 480px;
    display: flex;
    align-items: stretch;
}

.stb-deposit-calc__field-group .stb-deposit-calc__select,
.stb-deposit-calc__field-group .stb-deposit-calc__input,
.stb-deposit-calc__field-group .stb-deposit-calc__result {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.stb-deposit-calc__unit {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    background: var(--stb-gray-bg);
    border: 1px solid var(--stb-border);
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 0 0.75rem;
    color: var(--stb-muted);
    font-size: 0.875rem;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .stb-deposit-calc__select--wide {
        max-width: 100%;
    }
    .stb-deposit-calc__field-group {
        max-width: 100%;
        width: 100%;
    }
}

/* ============================================================
   Property Listing Component
   ============================================================ */
.stb-property-listing {
    padding: 1.5rem 0 2rem;
}

.stb-property-listing__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.stb-property-listing__filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stb-property-listing__filter-label {
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.9rem;
}

.stb-property-listing__select {
    min-width: 160px;
}

.stb-property-listing__search-btn {
    --bs-btn-bg: var(--stb-magenta, #ec008c);
    --bs-btn-border-color: var(--stb-magenta, #ec008c);
    --bs-btn-hover-bg: var(--stb-magenta-dark, #c40077);
    --bs-btn-hover-border-color: var(--stb-magenta-dark, #c40077);
    --bs-btn-active-bg: var(--stb-magenta-dark, #c40077);
    --bs-btn-active-border-color: var(--stb-magenta-dark, #c40077);
    --bs-btn-disabled-bg: var(--stb-magenta, #ec008c);
    --bs-btn-disabled-border-color: var(--stb-magenta, #ec008c);
    --bs-btn-disabled-color: #fff;
    background-color: var(--stb-magenta, #ec008c);
    border-color: var(--stb-magenta, #ec008c);
    color: #fff;
}

.stb-property-listing__search-btn:hover,
.stb-property-listing__search-btn:focus,
.stb-property-listing__search-btn:focus-visible,
.stb-property-listing__search-btn:active {
    background-color: var(--stb-magenta-dark, #c40077) !important;
    border-color: var(--stb-magenta-dark, #c40077) !important;
    color: #fff !important;
}

.stb-property-listing__search-btn:disabled,
.stb-property-listing__search-btn.disabled {
    background-color: var(--stb-magenta, #ec008c) !important;
    border-color: var(--stb-magenta, #ec008c) !important;
    color: #fff !important;
    opacity: 0.7;
    box-shadow: none;
    cursor: not-allowed;
}

.stb-property-listing__table thead th {
    font-weight: 700;
    border-bottom: 2px solid #dee2e6;
}

.stb-property-listing__row {
    cursor: pointer;
}

.stb-property-listing__row:hover td {
    background-color: #f0f7fc;
}

.stb-property-listing__row td {
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
    padding: 0.6rem 0.75rem;
}

.stb-property-listing__no-results {
    color: #6c757d;
    font-style: italic;
    padding: 1rem 0;
}

.stb-property-listing__meta {
    display: grid;
    grid-template-columns: minmax(9rem, 12rem) 1fr;
    gap: 0.5rem 1rem;
    margin: 0;
}

.stb-property-listing__meta dt {
    margin: 0;
    font-weight: 600;
}

.stb-property-listing__meta dd {
    margin: 0;
}

.stb-property-listing__desc p:last-child {
    margin-bottom: 0;
}

.stb-property-listing__pagination {
    margin-top: 1rem;
}

/* Pagination — magenta active circle, plain inactive numbers (live site parity) */
.stb-property-listing__pagination .pagination {
    gap: 0.65rem;
    margin: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.stb-property-listing__pagination .page-item {
    margin: 0;
}

.stb-property-listing__pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0 0.35rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--stb-ink);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1;
    box-shadow: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.stb-property-listing__pagination .page-link:hover {
    background: transparent;
    color: var(--stb-magenta);
    z-index: auto;
}

.stb-property-listing__pagination .page-item.active .page-link {
    min-width: 2rem;
    width: 2rem;
    padding: 0;
    background: var(--stb-magenta);
    color: #fff;
    box-shadow: none;
}

.stb-property-listing__pagination .page-item.disabled .page-link {
    background: transparent;
    color: #adb5bd;
    opacity: 1;
    pointer-events: none;
}

.stb-property-listing__pagination .page-link:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(236, 0, 140, 0.25);
}

.stb-property-listing__table-wrap {
    position: relative;
}

.stb-property-listing__table-wrap.is-loading {
    pointer-events: none;
}

.stb-property-listing__skeleton-row td {
    padding: 0.6rem 0.75rem;
}

.stb-property-listing__skeleton-cell {
    display: inline-block;
    height: 0.9rem;
    width: 70%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--stb-gray-bg, #f5f5f5) 25%, #ececec 37%, var(--stb-gray-bg, #f5f5f5) 63%);
    background-size: 400% 100%;
    animation: stb-shimmer 1.4s ease infinite;
}

.stb-property-listing__skeleton-row td:nth-child(3) .stb-property-listing__skeleton-cell { width: 55%; }
.stb-property-listing__skeleton-row td:nth-child(4) .stb-property-listing__skeleton-cell { width: 45%; }
.stb-property-listing__skeleton-row td:nth-child(5) .stb-property-listing__skeleton-cell { width: 50%; }

@media (prefers-reduced-motion: reduce) {
    .stb-property-listing__skeleton-cell {
        animation: none;
        background: var(--stb-gray-bg, #f5f5f5);
    }
}

#propertyListingModal .modal-body img[data-pl-modal-img] {
    display: block;
    max-height: 320px;
    object-fit: contain;
    width: 100%;
}

@media (max-width: 575.98px) {
    .stb-property-listing__filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .stb-property-listing__filter-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .stb-property-listing__select {
        min-width: 100%;
    }
}

/* Five columns don't fit a phone viewport, and horizontally scrolling a table of
   five short values reads as broken, so each row collapses into a label/value
   card. The labels come from data-label, which stb-property-sales.js copies off
   the (translated) header cells. screen-only, so a printed page keeps the table. */
@media screen and (max-width: 575.98px) {
    .stb-property-listing .table-responsive {
        overflow-x: visible;
    }

    .stb-property-listing__table,
    .stb-property-listing__table tbody,
    .stb-property-listing__table tbody tr,
    .stb-property-listing__table tbody td {
        display: block;
        width: auto;
    }

    /* the header labels now live in the cells */
    .stb-property-listing__table thead {
        display: none;
    }

    .stb-property-listing__table tbody tr {
        margin-bottom: 0.75rem;
        padding: 0.25rem 0.85rem;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        background: #fff;
    }

    .stb-property-listing__row:hover {
        background-color: #f0f7fc;
    }

    .stb-property-listing__row:hover td {
        background-color: transparent;
    }

    .stb-property-listing__table tbody td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.45rem 0;
        border-bottom: 1px solid #f0f2f5;
        text-align: right;
    }

    .stb-property-listing__table tbody tr td:last-child {
        border-bottom: 0;
    }

    /* a value the API left blank would otherwise render as a bare label */
    .stb-property-listing__table tbody td:empty {
        display: none;
    }

    .stb-property-listing__table tbody td::before {
        content: attr(data-label);
        flex: 0 1 auto;
        color: #5b6874;
        font-weight: 600;
        text-align: left;
    }

    .stb-property-listing__skeleton-row td {
        padding: 0.45rem 0;
    }

    .stb-property-listing__skeleton-row td::before {
        content: none;
    }
}

/* ============================================================
   Exchange rates table (Kursna lista)
   ============================================================ */

.stb-exchange-rates {
    margin: 0 0 2rem;
    color: #34404a;
}

.stb-exchange-rates__print-header {
    display: none;
}

.stb-exchange-rates__title {
    font-weight: 700;
    color: #39afd1;
    margin: 0 0 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #d9e2ec;
}

.stb-exchange-rates__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 5.5rem;
}

.stb-exchange-rates__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
}

.stb-exchange-rates__filter-label {
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;
    white-space: nowrap;
}

.stb-exchange-rates__date {
    width: 265px;
    min-width: 220px;
    max-width: 100%;
    min-height: 50px;
    border-color: #d9e2ec;
    color: #34404a;
    font-size: 1.2rem;
    padding-left: 1rem;
}

.stb-exchange-rates__search-btn {
    --bs-btn-bg: var(--stb-magenta, #ec008c);
    --bs-btn-border-color: var(--stb-magenta, #ec008c);
    --bs-btn-hover-bg: var(--stb-magenta-dark, #c40077);
    --bs-btn-hover-border-color: var(--stb-magenta-dark, #c40077);
    --bs-btn-active-bg: var(--stb-magenta-dark, #c40077);
    --bs-btn-active-border-color: var(--stb-magenta-dark, #c40077);
    --bs-btn-disabled-bg: var(--stb-magenta, #ec008c);
    --bs-btn-disabled-border-color: var(--stb-magenta, #ec008c);
    --bs-btn-disabled-color: #fff;
    background-color: var(--stb-magenta, #ec008c);
    border-color: var(--stb-magenta, #ec008c);
    color: #fff;
    min-height: 50px;
    padding: 0 1.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(236, 0, 140, .25);
}

.stb-exchange-rates__search-btn:hover,
.stb-exchange-rates__search-btn:focus,
.stb-exchange-rates__search-btn:focus-visible,
.stb-exchange-rates__search-btn:active {
    background-color: var(--stb-magenta-dark, #c40077) !important;
    border-color: var(--stb-magenta-dark, #c40077) !important;
    color: #fff !important;
}

.stb-exchange-rates__search-btn:disabled,
.stb-exchange-rates__search-btn.disabled {
    background-color: var(--stb-magenta, #ec008c) !important;
    border-color: var(--stb-magenta, #ec008c) !important;
    color: #fff !important;
    opacity: 0.7;
    box-shadow: none;
    cursor: not-allowed;
}

.stb-exchange-rates__print-btn {
    width: 56px;
    height: 50px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: var(--stb-magenta, #c8107a);
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(236, 0, 140, .25);
    cursor: pointer;
}

.stb-exchange-rates__print-btn:hover,
.stb-exchange-rates__print-btn:focus-visible {
    background: var(--stb-magenta-dark, #a80d66);
    color: #fff;
}

.stb-exchange-rates__print-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
}

.stb-exchange-rates__list-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 1rem;
    row-gap: 0.5rem;
    padding: 0 0 1.25rem;
    margin-bottom: 0;
    background: transparent;
    border: 0;
}

.stb-exchange-rates__list-bar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    min-width: 0;
}

.stb-exchange-rates__produced-label,
.stb-exchange-rates__produced-date {
    font-weight: 600;
    font-size: 1.05rem;
    white-space: nowrap;
}

.stb-exchange-rates__list-buttons {
    display: inline-flex;
    gap: 0.35rem;
}

.stb-exchange-rates__list-btn {
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border: 1px solid #ced4da;
    background: #fff;
    color: #333;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.stb-exchange-rates__list-btn:hover:not(:disabled),
.stb-exchange-rates__list-btn:focus-visible {
    border-color: #adb5bd;
    background: #f8f9fa;
    color: #333;
}

.stb-exchange-rates__list-btn.is-active,
.stb-exchange-rates__list-btn.is-active:hover:not(:disabled),
.stb-exchange-rates__list-btn.is-active:focus-visible {
    background: #495057;
    border-color: #495057;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.stb-exchange-rates__list-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.stb-exchange-rates__list-btn.is-active:disabled {
    background: #495057;
    border-color: #495057;
    color: #fff;
}

.stb-exchange-rates__list-meta {
    text-align: right;
    font-size: 1.05rem;
    line-height: 1.4;
    white-space: nowrap;
}

.stb-exchange-rates__table-wrap {
    position: relative;
    max-width: 100%;
}

.stb-exchange-rates__table-wrap.is-loading {
    pointer-events: none;
}

.stb-exchange-rates .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.stb-exchange-rates__skeleton-cell {
    display: inline-block;
    height: 0.9rem;
    width: 60%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--stb-gray-bg, #f5f5f5) 25%, #ececec 37%, var(--stb-gray-bg, #f5f5f5) 63%);
    background-size: 400% 100%;
    animation: stb-shimmer 1.4s ease infinite;
}

.stb-exchange-rates__skeleton-row:nth-child(even) td {
    background: #f4f7fb;
}

@media (prefers-reduced-motion: reduce) {
    .stb-exchange-rates__skeleton-cell {
        animation: none;
        background: var(--stb-gray-bg, #f5f5f5);
    }
}

.stb-exchange-rates__table {
    width: 100%;
    margin-bottom: 0;
    border: 1px solid #d9e2ec;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    table-layout: fixed;
}

.stb-exchange-rates__table thead th {
    font-weight: 700;
    text-align: left;
    vertical-align: middle;
    background: #f3f6fa;
    border-bottom: 1px solid #d9e2ec;
    border-right: 1px solid #d9e2ec;
    color: #2f3a45;
    padding: 1rem 0.85rem;
    white-space: normal;
    font-size: 0.98rem;
    line-height: 1.25;
}

.stb-exchange-rates__table thead tr:first-child th {
    border-top: 0;
}

.stb-exchange-rates__table thead th:last-child {
    border-right: 0;
}

.stb-exchange-rates__table thead tr:last-child th {
    font-weight: 600;
    font-size: 0.95rem;
}

.stb-exchange-rates__table tbody td {
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e4e9ef;
    border-right: 1px solid #e4e9ef;
    padding: 0.85rem 0.75rem;
    color: #334155;
    font-size: 1rem;
}

.stb-exchange-rates__table tbody td:last-child {
    border-right: 0;
}

.stb-exchange-rates__table tbody tr:nth-child(even) td {
    background: #f4f7fb;
}

.stb-exchange-rates__table tbody tr:last-child td {
    border-bottom: 0;
}

.stb-exchange-rates__currency {
    white-space: nowrap;
}

.stb-exchange-rates__currency img {
    width: 34px;
    height: auto;
    margin-right: 0.6rem;
    vertical-align: middle;
}

.stb-exchange-rates__currency span {
    vertical-align: middle;
    font-weight: 600;
}

.stb-exchange-rates__no-results {
    color: #6c757d;
    font-style: italic;
    padding: 1rem 0;
}

.stb-exchange-rates.is-empty .stb-exchange-rates__view-links {
    display: none;
}

.stb-exchange-rates__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0;
    margin-top: 0.25rem;
    border-top: 1px solid #dee2e6;
}

.stb-exchange-rates__notice {
    margin: 0;
    color: #495057;
    font-size: 0.95rem;
}

.stb-exchange-rates__view-links {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.stb-exchange-rates__view-link {
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--stb-primary, #c8107a);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.stb-exchange-rates__view-link.is-active {
    text-decoration: underline;
}

.stb-exchange-rates__view-sep {
    color: #adb5bd;
}

@media (max-width: 1199.98px) {
    .stb-exchange-rates__list-bar {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .stb-exchange-rates__list-meta {
        text-align: left;
        white-space: normal;
    }
}

@media (max-width: 767.98px) {
    .stb-exchange-rates__toolbar {
        align-items: flex-start;
        margin-bottom: 2rem;
        /* the date input keeps a 220px floor, so on a ~320px screen the print
           button has to be allowed onto its own line rather than off-screen */
        flex-wrap: wrap;
    }

    .stb-exchange-rates__filters {
        align-items: flex-start;
        flex-direction: column;
        min-width: 0;
    }

    .stb-exchange-rates__date {
        width: 100%;
    }

    .stb-exchange-rates__footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Below full desktop width the eight equal columns of table-layout: fixed stop
   fitting their contents: they bleed a few px into each other around 1000px and
   collapse to ~40px of overlapping text on a phone. Size the columns to their
   content instead (no min-width, so the narrower exchange-office view scrolls
   only as far as it has to) and let the wrapper scroll, keeping the currency
   column pinned so a scrolled row stays identifiable. screen-only — @media print
   re-lays this table out for A4 and must not inherit the auto layout or the
   sticky column. */
@media screen and (max-width: 1199.98px) {
    .stb-exchange-rates__table {
        table-layout: auto;
    }

    .stb-exchange-rates__table thead th {
        padding: 0.7rem 0.5rem;
        font-size: 0.85rem;
    }

    .stb-exchange-rates__table tbody td {
        padding: 0.6rem 0.5rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .stb-exchange-rates__currency img {
        width: 24px;
        margin-right: 0.4rem;
    }

    /* Pinned currency column. The backgrounds must be opaque and mirror the zebra
       striping, otherwise the scrolled numbers show through it, and only
       thead tr:first-child qualifies: the currency header spans both header rows,
       so pinning row two's leading cell would park a rate column on top of it. */
    .stb-exchange-rates__table thead tr:first-child th:first-child,
    .stb-exchange-rates__table tbody td:first-child {
        position: sticky;
        left: 0;
        z-index: 2;
        background: #fff;
    }

    .stb-exchange-rates__table thead tr:first-child th:first-child {
        background: #f3f6fa;
        z-index: 3;
    }

    .stb-exchange-rates__table tbody tr:nth-child(even) td:first-child {
        background: #f4f7fb;
    }
}

/* Always-visible slim scrollbar so the horizontal scroll is discoverable. */
.stb-exchange-rates .table-responsive,
.stb-property-listing .table-responsive {
    scrollbar-width: thin;
    scrollbar-color: #c9d3de #f1f4f8;
}

.stb-exchange-rates .table-responsive::-webkit-scrollbar,
.stb-property-listing .table-responsive::-webkit-scrollbar {
    height: 8px;
}

.stb-exchange-rates .table-responsive::-webkit-scrollbar-track,
.stb-property-listing .table-responsive::-webkit-scrollbar-track {
    background: #f1f4f8;
    border-radius: 4px;
}

.stb-exchange-rates .table-responsive::-webkit-scrollbar-thumb,
.stb-property-listing .table-responsive::-webkit-scrollbar-thumb {
    background: #c9d3de;
    border-radius: 4px;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    html,
    body {
        background: #fff !important;
        color: #34404a !important;
        font-size: 9px;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body > *:not(main),
    .stb-header,
    .stb-footer,
    .stb-back-to-top,
    .stb-search-drawer-shell,
    .stb-breadcrumb-bar,
    .stb-news-hero,
    .stb-details__tabs,
    .stb-news-sidebar,
    .stb-details__section:not(:has(.stb-exchange-rates)):not(:has(.stb-tariff-products)),
    .stb-details__section > h2,
    .stb-exchange-rates__title,
    .stb-exchange-rates__toolbar,
    .stb-exchange-rates__view-links,
    .stb-exchange-rates__loading {
        display: none !important;
    }

    .stb-exchange-rate-calc {
        display: none !important;
    }

    /* Tariff PDF: hide chrome and on-screen accordion; show generated print document */
    body.stb-printing-tariffs .stb-header,
    body.stb-printing-tariffs .stb-footer,
    body.stb-printing-tariffs .stb-back-to-top,
    body.stb-printing-tariffs .stb-search-drawer-shell,
    body.stb-printing-tariffs .stb-breadcrumb-bar,
    body.stb-printing-tariffs .stb-news-hero,
    body.stb-printing-tariffs .stb-details__tabs,
    body.stb-printing-tariffs .stb-news-sidebar,
    body.stb-printing-tariffs .stb-details__section:not(:has(.stb-tariff-products)),
    body.stb-printing-tariffs .stb-details__section > h2,
    body.stb-printing-tariffs .stb-tariff-products__toolbar,
    body.stb-printing-tariffs .stb-tariff-products__wrap,
    body.stb-printing-tariffs .stb-tariff-products__no-results,
    body.stb-printing-tariffs .stb-exchange-rates,
    body.stb-printing-tariffs .stb-exchange-rate-calc {
        display: none !important;
    }

    body.stb-printing-tariffs .stb-details__section:has(.stb-tariff-products),
    body.stb-printing-tariffs .stb-tariff-products,
    body.stb-printing-tariffs .stb-tariff-products__print {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
        border: 0 !important;
    }

    body.stb-printing-tariffs .stb-tariff-products__print {
        padding: 12mm 14mm !important;
        font-size: 9pt !important;
        color: #34404a !important;
    }

    body.stb-printing-tariffs .stb-tariff-print__title {
        font-size: 14pt;
        font-weight: 700;
        margin: 0 0 1rem;
        color: #1f2933;
    }

    body.stb-printing-tariffs .stb-tariff-print__product {
        margin: 0 0 1.1rem;
    }

    body.stb-printing-tariffs .stb-tariff-print__product-title {
        align-items: center;
        display: flex;
        font-size: 11pt;
        font-weight: 700;
        gap: 0.5rem;
        margin: 0 0 0.55rem;
        color: #1f2933;
    }

    body.stb-printing-tariffs .stb-tariff-print__badge {
        align-items: center;
        background: #ec008c;
        border-radius: 50%;
        color: #fff;
        display: inline-flex;
        flex: 0 0 1.4rem;
        font-size: 8pt;
        font-weight: 700;
        height: 1.4rem;
        justify-content: center;
        width: 1.4rem;
    }

    body.stb-printing-tariffs .stb-tariff-print__service {
        break-inside: avoid;
        margin: 0 0 0.75rem 0.75rem;
    }

    body.stb-printing-tariffs .stb-tariff-print__service-title {
        font-size: 9.5pt;
        font-weight: 700;
        margin: 0 0 0.35rem;
        color: #23313d;
    }

    body.stb-printing-tariffs .stb-tariff-products .lista_tariff {
        font-size: 8pt !important;
        width: 100% !important;
        border-collapse: collapse !important;
    }

    body.stb-printing-tariffs .stb-tariff-products .lista_tariff th,
    body.stb-printing-tariffs .stb-tariff-products .lista_tariff td {
        border: 1px solid #cfd8e3 !important;
        padding: 0.2rem 0.35rem !important;
    }

    main,
    .stb-details,
    .stb-newsitem__content,
    .stb-newsitem__main,
    .stb-details__sections,
    .stb-details__section,
    .stb-newsitem__body,
    .stb-exchange-rates {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: 0 !important;
        background: #fff !important;
    }

    .stb-exchange-rates {
        box-sizing: border-box !important;
        max-width: none !important;
        padding: 16mm 18mm !important;
    }

    .container,
    .container-fluid,
    .row,
    [class*="col-"] {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .container-fluid.stb-breadcrumb-bar,
    .stb-breadcrumb-bar,
    .breadcrumb.stb-newsitem__crumbs,
    .stb-newsitem__crumbs,
    .col-12.stb-news-sidebar,
    .stb-news-sidebar,
    .stb-news-promo,
    .stb-contact-card {
        display: none !important;
    }

    .stb-exchange-rates__print-header {
        display: flex !important;
        align-items: flex-start;
        gap: 18mm;
        margin: 8mm 0 14mm;
    }

    .stb-exchange-rates__print-header img {
        width: 38mm;
        height: auto;
    }

    .stb-exchange-rates__print-header h2 {
        margin: 6mm 0 0;
        color: #34404a;
        font-size: 14pt;
        font-weight: 700;
    }

    .stb-exchange-rates__list-bar {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 8mm;
        padding: 0 0 3mm !important;
        page-break-inside: avoid;
    }

    .stb-exchange-rates__list-bar-left,
    .stb-exchange-rates__list-buttons {
        display: inline-flex !important;
        align-items: center;
        gap: 4px;
    }

    .stb-exchange-rates__produced-label,
    .stb-exchange-rates__produced-date,
    .stb-exchange-rates__list-meta {
        color: #34404a !important;
        font-size: 7pt !important;
        font-weight: 600;
        line-height: 1.35;
    }

    .stb-exchange-rates__list-meta {
        text-align: right !important;
    }

    .stb-exchange-rates__list-btn {
        min-width: 4.5mm;
        height: 4.5mm;
        padding: 0 1mm;
        border: 1px solid #bfc8d1 !important;
        background: #fff !important;
        color: #34404a !important;
        box-shadow: none !important;
        font-size: 7pt;
        font-weight: 600;
    }

    .stb-exchange-rates__list-btn.is-active {
        background: #66717d !important;
        border-color: #66717d !important;
        color: #fff !important;
    }

    .stb-exchange-rates__table-wrap,
    .table-responsive {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    .stb-exchange-rates__table {
        width: 100% !important;
        max-width: 100% !important;
        border: 1px solid #cfd8e3 !important;
        border-collapse: collapse !important;
        table-layout: fixed;
        page-break-inside: auto;
    }

    .stb-exchange-rates__table th:nth-child(1),
    .stb-exchange-rates__table td:nth-child(1) {
        width: 13%;
    }

    .stb-exchange-rates__table th:nth-child(2),
    .stb-exchange-rates__table td:nth-child(2),
    .stb-exchange-rates__table th:nth-child(3),
    .stb-exchange-rates__table td:nth-child(3) {
        width: 10%;
    }

    .stb-exchange-rates__table thead {
        display: table-header-group;
    }

    .stb-exchange-rates__table tr {
        page-break-inside: avoid;
    }

    .stb-exchange-rates__table th,
    .stb-exchange-rates__table td {
        border: 1px solid #cfd8e3 !important;
        background: #fff !important;
        color: #34404a !important;
        padding: 2.4mm 2.2mm !important;
        font-size: 7pt !important;
        line-height: 1.25;
        white-space: normal !important;
    }

    .stb-exchange-rates__table thead th {
        font-weight: 700;
    }

    .stb-exchange-rates__table tbody tr:nth-child(even) td {
        background: #fff !important;
    }

    .stb-exchange-rates__currency img {
        width: 5.8mm;
        margin-right: 2mm;
    }

    .stb-exchange-rates__footer {
        display: block !important;
        margin-top: 4mm !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .stb-exchange-rates__notice {
        color: #66717d !important;
        font-size: 7pt !important;
        margin: 0 !important;
    }
}

/* ============================= EXCHANGE RATE CALCULATOR ============================= */
.stb-exchange-rate-calc {
    padding: 2rem 0 2.5rem;
    background-color: #fff;
}

.stb-exchange-rate-calc__inner {
    max-width: 700px;
}

.stb-exchange-rate-calc__title {
    margin: 0 0 1.25rem;
    color: var(--stb-ink);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stb-exchange-rate-calc__row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.stb-exchange-rate-calc__label {
    flex: 0 0 140px;
    color: var(--stb-ink);
    font-size: 1.25rem;
    font-weight: 600;
}

.stb-exchange-rate-calc__select,
.stb-exchange-rate-calc__input {
    flex: 1;
    max-width: 480px;
    min-height: 49px;
    border-color: #d9e2ec;
    color: #34404a;
    font-size: 1.2rem;
}

.stb-exchange-rate-calc__row--submit {
    align-items: flex-start;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

.stb-exchange-rate-calc__submit-col {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
}

.stb-exchange-rate-calc__btn {
    min-height: 50px;
    padding: 0 1.25rem;
    border: 1px solid var(--stb-info);
    border-radius: 0.25rem;
    background-color: var(--stb-info);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(57, 175, 209, .25);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.stb-exchange-rate-calc__btn:hover,
.stb-exchange-rate-calc__btn:focus-visible {
    border-color: var(--stb-info-dark);
    background-color: var(--stb-info-dark);
}

.stb-exchange-rate-calc__btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    box-shadow: none;
}

.stb-exchange-rate-calc__error {
    color: var(--stb-danger);
    font-size: 0.875rem;
    font-weight: 500;
}

.stb-exchange-rate-calc__result {
    flex: 1;
    max-width: 480px;
    min-height: 49px;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--stb-border);
    border-radius: 0.25rem;
    background: var(--stb-gray-bg);
    color: var(--stb-ink);
    font-size: 1.1rem;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .stb-exchange-rate-calc__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .stb-exchange-rate-calc__label {
        flex: none;
    }

    .stb-exchange-rate-calc__select,
    .stb-exchange-rate-calc__input,
    .stb-exchange-rate-calc__result {
        width: 100%;
        max-width: 100%;
    }
}

/* ============================================================
   Locations pages (Мрежа на филијали / Мрежа на банкомати)
   ============================================================ */

/* Tab bar — styled to match .stb-details__tabs */
.stb-locations-tabs-bar {
    background: #fff;
    border-bottom: 1px solid #d9e1e8;
    margin-bottom: 1.25rem;
    padding: 0;
}

.stb-locations-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.stb-locations-tab {
    color: #4f5963;
    flex: 0 0 auto;
    font-weight: 600;
    padding: .85rem 1.25rem .8rem;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    transition: color .15s;
}

.stb-locations-tab:hover { color: #343a40; }
.stb-locations-tab.active { color: #343a40; }
.stb-locations-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #28a9d5;
}

.stb-map-section {
    background: #fff;
    border: 1px solid var(--stb-border);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.stb-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
}

.stb-map-label {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .05em;
    color: var(--stb-ink);
}

.stb-nearest-btn {
    background: none;
    border: 1px solid var(--stb-magenta);
    color: var(--stb-magenta);
    font-size: .8rem;
    font-weight: 600;
    padding: .3rem .85rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: background .15s, color .15s, opacity .15s;
}

.stb-nearest-btn:hover {
    background: var(--stb-magenta);
    color: #fff;
}

.stb-nearest-btn.active {
    background: var(--stb-magenta);
    color: #fff;
}

.stb-nearest-btn.loading {
    opacity: .5;
    cursor: wait;
}

/* Map canvas */
.stb-map-canvas {
    width: 100%;
    height: 480px;
    border-radius: 4px;
}

@media (max-width: 767px) {
    .stb-map-canvas { height: 300px; }
}

/* Filter bar (ATMs only) */
.stb-filter-bar {
    display: flex;
    gap: .5rem;
    margin-bottom: .5rem;
}

.stb-filter-btn {
    background: none;
    border: 1px solid var(--stb-border);
    color: var(--stb-slate);
    font-size: .8rem;
    font-weight: 600;
    padding: .3rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.stb-filter-btn:hover {
    border-color: var(--stb-magenta);
    color: var(--stb-magenta);
}

.stb-filter-btn.active {
    background: var(--stb-magenta);
    border-color: var(--stb-magenta);
    color: #fff;
}

/* Locations body — list + detail panel side by side on wide screens */
.stb-locations-body {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 991px) {
    .stb-locations-body {
        grid-template-columns: 1fr;
    }
}

/* Scrollable location list */
.stb-locations-list {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid var(--stb-border);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* City group (accordion) */
.stb-city-group {
    border-bottom: 1px solid var(--stb-border);
}

.stb-city-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    background: var(--stb-gray-bg);
    border: none;
    padding: .65rem 1rem;
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    text-align: left;
    color: var(--stb-ink);
    transition: background .12s;
}

.stb-city-toggle:hover {
    background: #eee;
}

.stb-city-count {
    color: var(--stb-muted);
    font-weight: 400;
}

/* Individual location item */
.stb-location-item {
    padding: .6rem 1rem;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: border-color .12s, background .12s;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.stb-location-item:hover {
    border-left-color: var(--stb-magenta);
    background: #fdf0f8;
}

.stb-loc-main {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.stb-loc-name {
    font-size: .85rem;
    font-weight: 600;
    color: var(--stb-ink);
}

.stb-loc-addr {
    font-size: .75rem;
    color: var(--stb-muted);
}

.stb-loc-dist {
    font-size: .75rem;
    color: var(--stb-magenta);
    font-weight: 600;
    margin-left: auto;
}

.stb-cashin-badge {
    font-size: .65rem;
    font-weight: 700;
    background: var(--stb-magenta);
    color: #fff;
    padding: .1rem .4rem;
    border-radius: 2px;
    letter-spacing: .04em;
}

/* Detail panel */
.stb-location-detail {
    position: sticky;
    top: 60px;
    border: 1px solid var(--stb-border);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    overflow: hidden;
}

.stb-detail-inner {
    padding: 1.25rem;
    position: relative;
}

.stb-detail-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--stb-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.stb-detail-close:hover { color: var(--stb-ink); }

.stb-detail-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 1rem;
    display: block;
}

.stb-detail-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--stb-ink);
    margin-bottom: .75rem;
    padding-right: 1.5rem;
}

.stb-detail-field {
    font-size: .8rem;
    color: var(--stb-slate);
    display: flex;
    gap: .45rem;
    align-items: flex-start;
    margin-bottom: .4rem;
}

.stb-detail-field .mdi {
    color: var(--stb-magenta);
    font-size: .95rem;
    flex-shrink: 0;
    margin-top: .05rem;
}

.stb-detail-field a {
    color: var(--stb-magenta);
    word-break: break-all;
}

/* Nearest items flat list (no city accordion) */
.stb-nearest-items {
    padding: .25rem 0;
}

.stb-promo-card {
    background: #fff;
    border: 1px solid var(--stb-border);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    overflow: hidden;
    max-width: 460px;
}

.stb-promo-card__title {
    margin: 0;
    padding: .85rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--stb-magenta);
    border-bottom: 1px solid var(--stb-border);
}

.stb-promo-table {
    margin-bottom: 0;
}

.stb-promo-table th,
.stb-promo-table td {
    padding: .65rem 1rem;
}

.stb-promo-table thead th {
    background: #fff;
    color: var(--stb-magenta);
    font-weight: 700;
    border-bottom: 1px solid var(--stb-border);
}

.stb-promo-table tbody tr:nth-child(odd) td {
    background: #f6f4fa;
}

.stb-promo-table tbody td:first-child {
    font-weight: 600;
    color: var(--stb-ink);
}

/* ============================================================
   Tariff Products Component
   ============================================================ */
.stb-tariff-products {
    padding: 0.5rem 0 2rem;
}

.stb-tariff-products__toolbar {
    margin-bottom: 0.75rem;
}

.stb-tariff-products__pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.5rem 1.35rem;
    background: var(--stb-magenta, #ec008c);
    border: 0;
    border-radius: 0;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(236, 0, 140, 0.25);
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.stb-tariff-products__pdf-btn:hover,
.stb-tariff-products__pdf-btn:focus,
.stb-tariff-products__pdf-btn:focus-visible {
    background: var(--stb-magenta-dark, #c40077);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(196, 0, 119, 0.3);
}

.stb-tariff-products__pdf-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    box-shadow: none;
}

.stb-tariff-products__print {
    display: none;
}

.stb-tariff-products__wrap {
    position: relative;
    min-height: 3rem;
}

.stb-tariff-products__wrap.is-loading {
    pointer-events: none;
}

.stb-tariff-products__loading {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.stb-tariff-products__loading[hidden] {
    display: none !important;
}

.stb-tariff-products__skeleton-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 3.75rem;
    padding: 1rem 3.25rem 1rem 1.5rem;
    border: 1px solid var(--stb-border, #dee2e6);
    background: #fff;
}

.stb-tariff-products__skeleton-badge,
.stb-tariff-products__skeleton-line {
    background: linear-gradient(90deg, var(--stb-gray-bg, #f5f5f5) 25%, #ececec 37%, var(--stb-gray-bg, #f5f5f5) 63%);
    background-size: 400% 100%;
    animation: stb-shimmer 1.4s ease infinite;
    border-radius: 4px;
}

.stb-tariff-products__skeleton-badge {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
}

.stb-tariff-products__skeleton-line {
    height: 0.9rem;
    width: 45%;
}

.stb-tariff-products__skeleton-row:nth-child(2) .stb-tariff-products__skeleton-line { width: 65%; }
.stb-tariff-products__skeleton-row:nth-child(3) .stb-tariff-products__skeleton-line { width: 35%; }
.stb-tariff-products__skeleton-row:nth-child(4) .stb-tariff-products__skeleton-line { width: 55%; }

.stb-tariff-products__skeleton-row--nested {
    min-height: 0;
    border-radius: 4px;
    padding: 0.75rem 2.75rem 0.75rem 1.25rem;
}

.stb-tariff-products__skeleton-badge--sm {
    width: 1.5rem;
    height: 1.5rem;
}

@keyframes stb-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .stb-tariff-products__skeleton-badge,
    .stb-tariff-products__skeleton-line {
        animation: none;
        background: var(--stb-gray-bg, #f5f5f5);
    }
}

.stb-tariff-products__accordion.custom-accordion .card + .card {
    margin-top: 0.6rem;
}

.stb-tariff-products__product-card,
.stb-tariff-products__service-card {
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.stb-tariff-products__product-card > .card-header,
.stb-tariff-products__service-card > .card-header {
    padding: 0;
    background: #fff;
    border-bottom: 0;
}

.stb-tariff-products__product-card > .card-header > h5,
.stb-tariff-products__service-card > .card-header > h5 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 3.75rem;
    padding: 1rem 3.25rem 1rem 1.5rem;
    position: relative;
    border-bottom: 1px solid #d9e1e8;
    background: #fff;
}

.stb-tariff-products .faq-question-q-box {
    align-items: center;
    background: var(--stb-magenta, #ec008c);
    border-radius: 50%;
    box-shadow: none;
    color: #fff;
    display: inline-flex;
    flex: 0 0 1.9rem;
    float: none;
    font-size: 1rem;
    font-weight: 700;
    height: 1.9rem;
    justify-content: center;
    line-height: 1;
    margin: 0 !important;
    text-align: center;
    width: 1.9rem;
}

.stb-tariff-products__product-trigger,
.stb-tariff-products__service-trigger {
    color: #1f2933 !important;
    flex: 1 1 auto;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-left: 0;
    padding: 0;
    text-decoration: none !important;
}

.stb-tariff-products__product-trigger:hover,
.stb-tariff-products__service-trigger:hover {
    color: var(--stb-magenta, #ec008c) !important;
}

.stb-tariff-products__product-trigger .float-end,
.stb-tariff-products__service-trigger .float-end {
    float: none;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.stb-tariff-products .accordion-arrow {
    color: #1f2933;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.18s ease;
}

.stb-tariff-products a.collapsed .accordion-arrow {
    transform: rotate(-90deg);
}

.stb-tariff-products a:not(.collapsed) .accordion-arrow {
    transform: none;
}

.stb-tariff-products a.collapsed .accordion-arrow::before,
.stb-tariff-products a:not(.collapsed) .accordion-arrow::before {
    transform: none;
}

.stb-tariff-products__product-panel,
.stb-tariff-products__service-panel {
    border-top: 0;
    background: #fff;
}

.stb-tariff-products__product-panel[hidden],
.stb-tariff-products__service-panel[hidden] {
    display: none !important;
}

.stb-tariff-products__product-panel .card-body,
.stb-tariff-products__service-panel .card-body {
    color: #4f5963;
    padding: 1.35rem 1.5rem 1.5rem;
}

.stb-tariff-products__nested {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Nested service rows — one bordered card wrapping header + table, like the reference site */
.stb-tariff-products__service-card {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.stb-tariff-products__service-card > .card-header {
    background: #fafbfe;
}

.stb-tariff-products__service-card > .card-header > h5 {
    background: transparent;
    border: 0;
    font-size: 0.9rem;
    margin: 0;
    min-height: 0;
    padding: 0.75rem 2.75rem 0.75rem 1.25rem;
}

.stb-tariff-products__service-card .faq-question-q-box {
    flex: 0 0 1.5rem;
    font-size: 0.8rem;
    height: 1.5rem;
    width: 1.5rem;
}

.stb-tariff-products__service-trigger {
    font-size: 0.9rem;
    font-weight: 700;
}

.stb-tariff-products__service-trigger .float-end {
    right: 1.25rem;
}

.stb-tariff-products__service-card .accordion-arrow {
    font-size: 1.05rem;
}

.stb-tariff-products__service-panel .card-body {
    padding: 1rem 1.25rem 1.25rem;
}

.stb-tariff-products__no-results {
    color: #6c757d;
    font-style: italic;
    padding: 1rem 0;
}

.stb-tariff-products .lista_tariff {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #494f54;
}

.stb-tariff-products .lista_tariff thead th {
    background: #f8f9fa;
    font-weight: 700;
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
}

.stb-tariff-products .lista_tariff tbody td {
    vertical-align: middle;
}

.stb-tariff-products .lista_tariff .parentTitle,
.stb-tariff-products .lista_tariff .Title {
    text-align: left;
    white-space: normal;
}

.stb-tariff-products .lista_tariff .rangStart,
.stb-tariff-products .lista_tariff .rangEnd,
.stb-tariff-products .lista_tariff .provizijaProcent,
.stb-tariff-products .lista_tariff .provizijaMin,
.stb-tariff-products .lista_tariff .provizijaMax,
.stb-tariff-products .lista_tariff .provizijaDopolnitelna {
    text-align: right;
    white-space: nowrap;
}
