/* Daily Financial - v1.3 features */

/* ---------- Breaking news bar ---------- */
.vm-bz-breaking {
    background: var(--vm-bz-dark, #00040f);
    color: #fff;
    font-size: 13px;
    overflow: hidden;
}
.vm-bz-breaking .vm-container {
    display: flex;
    align-items: stretch;
}
.vm-bz-breaking-title {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 9px 14px;
    background: var(--vm-bz-breaking-bg, #ffd400);
    color: var(--vm-bz-breaking-text, #00040f);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: 12px;
    white-space: nowrap;
}
.vm-bz-breaking-track {
    flex: 1;
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.vm-bz-breaking-list {
    display: flex;
    flex: 0 0 auto;
    list-style: none;
    margin: 0;
    padding: 0;
    animation: vm-bz-ticker var(--vm-bz-breaking-speed, 45s) linear infinite;
}
.vm-bz-breaking:hover .vm-bz-breaking-list,
.vm-bz-breaking:focus-within .vm-bz-breaking-list {
    animation-play-state: paused;
}
.vm-bz-breaking-list li {
    margin: 0;
    padding: 9px 22px 9px 0;
    white-space: nowrap;
}
.vm-bz-breaking-list li:before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 10px 1px 4px;
    background: var(--vm-bz-breaking-bg, #ffd400);
    vertical-align: middle;
}
.vm-bz-breaking-list a {
    color: #fff;
    text-decoration: none;
}
.vm-bz-breaking-list a:hover {
    text-decoration: underline;
}
@keyframes vm-bz-ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
.rtl .vm-bz-breaking-list { animation-name: vm-bz-ticker-rtl; }
@keyframes vm-bz-ticker-rtl {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

/* ---------- Image hover effects (zoom is the default in buzz.css) ---------- */
.vm-bz-thumb,
.vm-bz-thumb img { border-radius: var(--vm-bz-radius-img, 0); }
.vm-bz-archive-item:hover .vm-bz-thumb img,
.vm-bz-mega-post:hover .vm-bz-thumb img { transform: scale(1.06); }

.vm-bz-hover-none .vm-bz-thumb img { transform: none !important; }

.vm-bz-hover-zoom-rotate :is(.vm-bz-card, .vm-bz-slide, .vm-bz-tile, .vm-bz-media, .vm-bz-boxed-card, .vm-bz-zz-item, .vm-bz-archive-item, .vm-bz-mega-post):hover .vm-bz-thumb img { transform: scale(1.12) rotate(2deg); }

.vm-bz-hover-zoom-out .vm-bz-thumb img { transform: scale(1.1); }
.vm-bz-hover-zoom-out :is(.vm-bz-card, .vm-bz-slide, .vm-bz-tile, .vm-bz-media, .vm-bz-boxed-card, .vm-bz-zz-item, .vm-bz-archive-item, .vm-bz-mega-post):hover .vm-bz-thumb img { transform: scale(1); }

.vm-bz-hover-grayscale .vm-bz-thumb img { filter: grayscale(1); transition: filter .5s; transform: none !important; }
.vm-bz-hover-grayscale :is(.vm-bz-card, .vm-bz-slide, .vm-bz-tile, .vm-bz-media, .vm-bz-boxed-card, .vm-bz-zz-item, .vm-bz-archive-item, .vm-bz-mega-post):hover .vm-bz-thumb img { filter: none; }

.vm-bz-hover-brighten .vm-bz-thumb img,
.vm-bz-hover-darken .vm-bz-thumb img,
.vm-bz-hover-blur .vm-bz-thumb img { transition: filter .4s; transform: none !important; }
.vm-bz-hover-brighten :is(.vm-bz-card, .vm-bz-slide, .vm-bz-tile, .vm-bz-media, .vm-bz-boxed-card, .vm-bz-zz-item, .vm-bz-archive-item, .vm-bz-mega-post):hover .vm-bz-thumb img { filter: brightness(1.15) saturate(1.1); }
.vm-bz-hover-darken :is(.vm-bz-card, .vm-bz-slide, .vm-bz-tile, .vm-bz-media, .vm-bz-boxed-card, .vm-bz-zz-item, .vm-bz-archive-item, .vm-bz-mega-post):hover .vm-bz-thumb img { filter: brightness(.75); }
.vm-bz-hover-blur :is(.vm-bz-card, .vm-bz-slide, .vm-bz-tile, .vm-bz-media, .vm-bz-boxed-card, .vm-bz-zz-item, .vm-bz-archive-item, .vm-bz-mega-post):hover .vm-bz-thumb img { filter: blur(2px); }

.vm-bz-hover-slide .vm-bz-thumb img { width: 110%; max-width: none; transform: translateX(0) !important; transition: transform .6s; }
.vm-bz-hover-slide :is(.vm-bz-card, .vm-bz-slide, .vm-bz-tile, .vm-bz-media, .vm-bz-boxed-card, .vm-bz-zz-item, .vm-bz-archive-item, .vm-bz-mega-post):hover .vm-bz-thumb img { transform: translateX(-9%) !important; }

.vm-bz-hover-shine .vm-bz-thumb img { transform: none !important; }
.vm-bz-hover-shine .vm-bz-thumb:after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .35) 100%);
    transform: skewX(-25deg);
    pointer-events: none;
}
.vm-bz-hover-shine :is(.vm-bz-card, .vm-bz-slide, .vm-bz-tile, .vm-bz-media, .vm-bz-boxed-card, .vm-bz-zz-item, .vm-bz-archive-item, .vm-bz-mega-post):hover .vm-bz-thumb:after { animation: vm-bz-shine .75s; }
@keyframes vm-bz-shine { to { left: 125%; } }

/* ---------- Corner radius & form / off-canvas colours ---------- */
.vm-bz-cat { border-radius: var(--vm-bz-radius-label, 0); }
.vm-bz-load-more,
.vm-bz-tabs a,
.vm-bz-cookie-btn,
.vm-bz-share a,
.vm-bz-share button,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.entry-readmore a { border-radius: var(--vm-bz-radius-btn, 0); }
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
    border-radius: var(--vm-bz-radius-input, 0);
    background-color: var(--vm-bz-input-bg, #fff);
    border-color: var(--vm-bz-input-border, #d9dbe0);
    color: var(--vm-bz-input-text, inherit);
}
.vm-offcanvas-sidebar {
    background: var(--vm-bz-offcanvas-bg, #fff);
    color: var(--vm-bz-offcanvas-text, inherit);
}
.vm-offcanvas-sidebar a,
.vm-offcanvas-sidebar .widget-title { color: var(--vm-bz-offcanvas-text, inherit); }

/* ---------- Block title styles (style1 = Buzz default in buzz.css) ---------- */
.vm-bz-heading-style2 .vm-bz-block-header { border-top: 0; border-bottom: 2px solid var(--vm-bz-block-top, var(--vm-bz-dark)); padding: 0; }
.vm-bz-heading-style2 .vm-bz-block-title span { display: inline-block; padding: 9px 14px; background: var(--vm-bz-block-top, var(--vm-bz-dark)); color: #fff; }

.vm-bz-heading-style3 .vm-bz-block-header { border-top: 0; border-bottom: 1px solid var(--vm-bz-block-bottom); padding: 4px 0 10px; }
.vm-bz-heading-style3 .vm-bz-block-title { border-left: 5px solid var(--vm-bz-block-top, var(--vm-bz-dark)); padding-left: 10px; }

.vm-bz-heading-style4 .vm-bz-block-header { border: 0; padding: 4px 0; }
.vm-bz-heading-style4 .vm-bz-block-title { display: flex; align-items: center; gap: 14px; flex: 1; justify-content: center; }
.vm-bz-heading-style4 .vm-bz-block-title:before,
.vm-bz-heading-style4 .vm-bz-block-title:after { content: ""; flex: 1; height: 2px; background: var(--vm-bz-block-top, var(--vm-bz-dark)); }

.vm-bz-heading-style5 .vm-bz-block-header { border-top: 0; border-bottom: 1px solid var(--vm-bz-block-bottom); padding: 0; }
.vm-bz-heading-style5 .vm-bz-block-title span { display: inline-block; padding-bottom: 10px; margin-bottom: -1px; border-bottom: 3px solid var(--vm-bz-accent, var(--vm-bz-dark)); }

.vm-bz-heading-style6 .vm-bz-block-header { border: 0; background: var(--vm-bz-block-top, var(--vm-bz-dark)); padding: 10px 14px; }
.vm-bz-heading-style6 .vm-bz-block-title,
.vm-bz-heading-style6 .vm-bz-view-all { color: #fff; }
.vm-bz-heading-style6 .vm-bz-tabs a { color: #fff; border-color: rgba(255, 255, 255, .3); }

.vm-bz-heading-style7 .vm-bz-block-header { border-top: 0; border-bottom: 3px dotted var(--vm-bz-block-top, var(--vm-bz-dark)); padding: 4px 0 10px; }
.vm-bz-heading-style8 .vm-bz-block-header { border-top: 0; border-bottom: 4px double var(--vm-bz-block-top, var(--vm-bz-dark)); padding: 4px 0 10px; }

.vm-bz-heading-style9 .vm-bz-block-header { border-top: 0; border-bottom: 2px solid var(--vm-bz-block-top, var(--vm-bz-dark)); padding: 0; }
.vm-bz-heading-style9 .vm-bz-block-title span { display: inline-block; padding: 9px 26px 9px 14px; background: var(--vm-bz-block-top, var(--vm-bz-dark)); color: #fff; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }

.vm-bz-heading-style10 .vm-bz-block-header { border: 0; padding: 0 0 6px; }
.vm-bz-heading-style11 .vm-bz-block-header { border-top: 2px solid var(--vm-bz-block-top, var(--vm-bz-dark)); border-bottom: 0; padding: 12px 0 0; }

.vm-bz-heading-style12 .vm-bz-block-header { border: 0; padding: 0; }
.vm-bz-heading-style12 .vm-bz-block-title span { display: inline-block; padding: 8px 18px; border-radius: 30px; background: var(--vm-bz-block-top, var(--vm-bz-dark)); color: #fff; }

/* ---------- Accessibility ---------- */
.vm-bz-focus-outline a:focus-visible,
.vm-bz-focus-outline button:focus-visible,
.vm-bz-focus-outline input:focus-visible,
.vm-bz-focus-outline select:focus-visible,
.vm-bz-focus-outline textarea:focus-visible,
.vm-bz-focus-outline summary:focus-visible,
.vm-bz-focus-outline [tabindex]:focus-visible {
    outline: 3px solid var(--vm-bz-focus, #ffd400) !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(0, 0, 0, .6);
}
.vm-bz-underline-links .single-entry-content a:not(.vm-bz-cat):not([class*="button"]),
.vm-bz-underline-links .entry-content a:not(.vm-bz-cat):not([class*="button"]) {
    text-decoration: underline;
    text-underline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .vm-bz-breaking-list { animation: none !important; }
    .vm-bz-breaking-list[aria-hidden="true"] { display: none; }
    .vm-bz-breaking-track { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Table of contents ---------- */
.vm-bz-toc {
    margin: 0 0 28px;
    border: 1px solid var(--vm-bz-border, #e5e5e5);
    border-top: 3px solid var(--vm-bz-dark, #00040f);
    background: var(--vm-bz-soft, #f6f6f6);
    font-size: 15px;
}
.vm-bz-toc summary {
    cursor: pointer;
    padding: 12px 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: 13px;
}
.vm-bz-toc nav { padding: 0 16px 14px; }
.vm-bz-toc ol { margin: 0; padding-left: 20px; }
.vm-bz-toc ol ol { margin-top: 4px; }
.vm-bz-toc li { margin: 4px 0; }
.vm-bz-toc a { text-decoration: none; color: inherit; }
.vm-bz-toc a:hover { text-decoration: underline; }
.single-entry-content [id],
.entry-content [id] { scroll-margin-top: 90px; }
html { scroll-behavior: smooth; }

/* ---------- Ads ---------- */
.vm-bz-placement-ad + .widget { margin-top: 15px; }
.vm-bz-sidebar-ad { margin-bottom: 30px; }
.vm-bz-archive-ad { margin: 0 0 40px; grid-column: 1 / -1; }
.vm-bz-sticky-ad {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .15);
    padding: 6px 40px;
    text-align: center;
}
.vm-bz-sticky-ad .vm-bz-ad-area { margin: 0; }
.vm-bz-sticky-ad .vm-bz-ad-label { display: none; }
.vm-bz-sticky-ad img { max-height: 90px; width: auto; }
.vm-bz-sticky-ad-close {
    position: absolute;
    top: 4px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: #00040f;
    color: #fff;
    font-size: 18px;
    line-height: 28px;
    cursor: pointer;
}
.vm-bz-sticky-ad.vm-bz-closed { display: none; }

/* ---------- Cookie consent ---------- */
.vm-bz-cookie {
    position: fixed;
    z-index: 99999;
    background: var(--vm-bz-cc-bg, #00040f);
    color: var(--vm-bz-cc-text, #fff);
    font-size: 14px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .3s, transform .3s;
}
.vm-bz-cookie.vm-bz-cookie-open { opacity: 1; transform: none; }
.vm-bz-cookie[hidden] { display: none; }
.vm-bz-cookie-bar { left: 0; right: 0; bottom: 0; box-shadow: 0 -4px 20px rgba(0, 0, 0, .25); }
.vm-bz-cookie-bar .vm-bz-cookie-inner { max-width: 1200px; margin: 0 auto; padding: 18px 20px; display: flex; gap: 24px; align-items: center; }
.vm-bz-cookie-box { left: 20px; bottom: 20px; max-width: 400px; box-shadow: 0 6px 30px rgba(0, 0, 0, .3); }
.vm-bz-cookie-box .vm-bz-cookie-inner { padding: 22px; }
.vm-bz-cookie-box .vm-bz-cookie-actions { margin-top: 14px; }
.vm-bz-cookie-text { flex: 1; }
.vm-bz-cookie-title { display: block; font-size: 16px; margin-bottom: 4px; }
.vm-bz-cookie p { margin: 0; }
.vm-bz-cookie a { color: inherit; text-decoration: underline; }
.vm-bz-cookie-prefs { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; }
.vm-bz-cookie-prefs[hidden] { display: none; }
.vm-bz-cookie-prefs label { display: inline-flex; align-items: center; gap: 6px; }
.vm-bz-cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vm-bz-cookie-btn {
    padding: 10px 18px;
    border: 2px solid var(--vm-bz-cc-btn, #ffd400);
    background: var(--vm-bz-cc-btn, #ffd400);
    color: var(--vm-bz-cc-btn-text, #00040f);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
}
.vm-bz-cookie-reject { background: transparent; color: var(--vm-bz-cc-text, #fff); }
.vm-bz-cookie-link { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font-size: 13px; padding: 6px; }
.vm-bz-cookie-btn[hidden],
.vm-bz-cookie-link[hidden] { display: none; }
@media (max-width: 768px) {
    .vm-bz-cookie-bar .vm-bz-cookie-inner { flex-direction: column; align-items: stretch; gap: 12px; }
    .vm-bz-cookie-box { left: 10px; right: 10px; bottom: 10px; max-width: none; }
    .vm-bz-sticky-ad { padding: 4px 36px; }
    .vm-bz-sticky-ad img { max-height: 60px; }
}

/* ---------- Archive layouts & pagination ---------- */
.vm-bz-blog-layout3 .site-main-loop,
.vm-bz-blog-layout5 .site-main-loop {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}
.vm-bz-blog-layout5 .site-main-loop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vm-bz-blog-layout3 .site-main-loop > *,
.vm-bz-blog-layout5 .site-main-loop > * { margin: 0; }
.vm-bz-archive-list {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 24px;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--vm-bz-border, #e5e5e5);
}
.vm-bz-archive-list .vm-bz-cats { margin-bottom: 8px; }
.vm-bz-title-lg { font-size: 22px; line-height: 1.3; margin: 0 0 8px; }
.vm-bz-title-lg a { color: inherit; text-decoration: none; }
.vm-bz-pagination-load-more .pagination .nav-links,
.vm-bz-pagination-infinite .pagination .nav-links { display: none; }
.vm-bz-archive-more-wrap { text-align: center; margin: 20px 0; }
@media (max-width: 768px) {
    .vm-bz-blog-layout3 .site-main-loop,
    .vm-bz-blog-layout5 .site-main-loop,
    .vm-bz-archive-list { grid-template-columns: 1fr; }
}

/* ---------- Mega menu (desktop only; mobile keeps the normal sub-menu) ---------- */
.vm-bz-mega { display: none; }
@media (min-width: 1025px) {
    .vm-header { position: relative; }
    li.vm-bz-has-mega { position: static !important; }
    li.vm-bz-has-mega > ul.sub-menu { display: none !important; }
    li.vm-bz-has-mega > .vm-bz-mega {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 999;
        max-width: var(--vm-bz-container, 1200px);
        margin: 0 auto;
        padding: 24px;
        background: #fff;
        border-top: 3px solid var(--vm-bz-dark, #00040f);
        box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity .25s, transform .25s, visibility .25s;
        text-align: left;
    }
    li.vm-bz-has-mega:hover > .vm-bz-mega,
    li.vm-bz-has-mega:focus-within > .vm-bz-mega { opacity: 1; visibility: visible; transform: none; }
    .vm-bz-mega-posts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
    .vm-bz-mega-post .vm-bz-thumb-wrap { margin-bottom: 10px; }
    .vm-bz-mega a.vm-bz-mega-title {
        display: block;
        padding: 0;
        font-size: 14px;
        line-height: 1.4;
        font-weight: 600;
        text-transform: none;
        letter-spacing: 0;
        color: var(--vm-bz-title-color, #00040f);
        white-space: normal;
    }
    .vm-bz-mega a.vm-bz-mega-title:hover { color: var(--vm-bz-title-hover, #555); }
    .vm-bz-mega-date { display: block; margin-top: 6px; font-size: 12px; color: var(--vm-bz-muted, #777); }
}

/* ---------- Footer bar: logo, menu, social ---------- */
.vm-bz-footer-bar-full .vm-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 30px;
}
.vm-bz-footer-logo img { max-height: 42px; width: auto; display: block; }
.vm-bz-footer-links-row .vm-bz-social-list { margin: 0; }
@media (max-width: 768px) {
    .vm-bz-footer-bar-full .vm-container { flex-direction: column; }
}
