/* ================================================================
   HOME SECONDARY NEWS TICKER
   Placement: immediately below Home Statistics and above media cards.
   Dedicated CSS ownership: does NOT style the header/top ticker.
   ================================================================ */

body.public-home-layout .campaign-home-page .home-secondary-ticker-slot {
    width: 100%;
    margin: 0;
    padding: 14px 0;
    overflow: hidden;
    background: #eef3f7;
    box-sizing: border-box;
}

body.public-home-layout .campaign-home-page .home-secondary-ticker {
    width: var(--home-media-rail, min(1840px, calc(100% - 64px)));
    max-width: none;
    margin: 0 auto;
    padding: 10px 14px;
    overflow: hidden;
    border: 1px solid #dfe6ed;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(22, 37, 55, .05);
    box-sizing: border-box;
}

body.public-home-layout .campaign-home-page .home-secondary-ticker__inner {
    width: 100%;
    min-width: 0;
    height: 38px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
}

body.public-home-layout .campaign-home-page .home-secondary-ticker__label {
    position: relative;
    z-index: 2;
    height: 36px;
    min-width: 108px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 6px;
    color: #ffffff;
    background: #f4510b;
    font-family: "Noto Sans Devanagari", "Nirmala UI", Inter, sans-serif;
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 2px 7px rgba(244, 81, 11, .16);
}

body.public-home-layout .campaign-home-page .home-secondary-ticker__viewport {
    min-width: 0;
    width: 100%;
    height: 38px;
    overflow: hidden;
}

body.public-home-layout .campaign-home-page .home-secondary-ticker__track {
    width: max-content;
    min-width: 100%;
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
    white-space: nowrap;
    will-change: transform;
    box-sizing: border-box;
}

body.public-home-layout .campaign-home-page .home-secondary-ticker__message {
    display: inline-flex;
    align-items: center;
    color: #293747;
    font-family: "Noto Sans Devanagari", "Nirmala UI", Inter, sans-serif;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

body.public-home-layout .campaign-home-page a.home-secondary-ticker__message:hover,
body.public-home-layout .campaign-home-page a.home-secondary-ticker__message:focus {
    color: #f4510b;
    text-decoration: none;
}

body.public-home-layout .campaign-home-page .home-secondary-ticker__diamond {
    flex: 0 0 auto;
    color: #f4510b;
    font-size: 10px;
    line-height: 1;
}

/* The common ticker JS toggles is-active for non-marquee effects. */
body.public-home-layout .campaign-home-page .home-secondary-ticker:not(.ticker-js-marquee)
.home-secondary-ticker__message {
    display: none;
}

body.public-home-layout .campaign-home-page .home-secondary-ticker:not(.ticker-js-marquee)
.home-secondary-ticker__message.is-active {
    display: inline-flex;
}

body.public-home-layout .campaign-home-page .home-secondary-ticker .ticker-typing-output {
    color: #293747;
    font-family: "Noto Sans Devanagari", "Nirmala UI", Inter, sans-serif;
    font-size: 13px;
    font-weight: 750;
}

@media (max-width: 1199.98px) {
    body.public-home-layout .campaign-home-page .home-secondary-ticker {
        width: var(--home-media-rail, calc(100% - 40px));
    }
}

@media (max-width: 767.98px) {
    body.public-home-layout .campaign-home-page .home-secondary-ticker-slot {
        padding: 10px 0;
    }

    body.public-home-layout .campaign-home-page .home-secondary-ticker {
        width: var(--home-media-rail, calc(100% - 24px));
        padding: 7px 8px;
        border-radius: 10px;
    }

    body.public-home-layout .campaign-home-page .home-secondary-ticker__inner,
    body.public-home-layout .campaign-home-page .home-secondary-ticker__viewport,
    body.public-home-layout .campaign-home-page .home-secondary-ticker__track {
        height: 34px;
    }

    body.public-home-layout .campaign-home-page .home-secondary-ticker__label {
        height: 32px;
        min-width: 84px;
        padding: 0 10px;
        font-size: 11px;
    }

    body.public-home-layout .campaign-home-page .home-secondary-ticker__track {
        gap: 12px;
        padding: 0 10px;
    }

    body.public-home-layout .campaign-home-page .home-secondary-ticker__message,
    body.public-home-layout .campaign-home-page .home-secondary-ticker .ticker-typing-output {
        font-size: 11px;
    }
}


/* ================================================================
   v2 - EXISTING PublicNewsTicker MARKUP SUPPORT
   The second Home ticker now reuses LayoutController.PublicNewsTicker.
   Scope is restricted to .home-secondary-ticker-slot only.
   ================================================================ */

body.public-home-layout .campaign-home-page .home-secondary-ticker-slot > * {
    width: var(--home-media-rail, min(1840px, calc(100% - 64px))) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

body.public-home-layout .campaign-home-page .home-secondary-ticker-slot .public-news-ticker,
body.public-home-layout .campaign-home-page .home-secondary-ticker-slot .campaign-news-ticker,
body.public-home-layout .campaign-home-page .home-secondary-ticker-slot [data-public-ticker] {
    min-height: 58px !important;
    padding: 10px 14px !important;
    overflow: hidden !important;
    border: 1px solid #dfe6ed !important;
    border-radius: 13px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(22, 37, 55, .05) !important;
}

body.public-home-layout .campaign-home-page .home-secondary-ticker-slot .ticker-label,
body.public-home-layout .campaign-home-page .home-secondary-ticker-slot .public-news-ticker__label,
body.public-home-layout .campaign-home-page .home-secondary-ticker-slot .campaign-news-ticker__label {
    min-width: 104px !important;
    height: 34px !important;
    padding: 0 13px !important;
    border-radius: 6px !important;
    color: #fff !important;
    background: #f4510b !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

body.public-home-layout .campaign-home-page .home-secondary-ticker-slot .ticker-message,
body.public-home-layout .campaign-home-page .home-secondary-ticker-slot [data-ticker-message] {
    color: #293747 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

@media (max-width: 1199.98px) {
    body.public-home-layout .campaign-home-page .home-secondary-ticker-slot > * {
        width: var(--home-media-rail, calc(100% - 40px)) !important;
    }
}

@media (max-width: 767.98px) {
    body.public-home-layout .campaign-home-page .home-secondary-ticker-slot > * {
        width: var(--home-media-rail, calc(100% - 24px)) !important;
    }
}
