/*
=========================================================
TOOLVETA BLOG
BLOG CONTENT ONLY
Uses the same design language as the Toolveta homepage.
Does NOT replace the global Toolveta header/footer.
=========================================================
*/

.tv-blog,
.tv-blog * {
    box-sizing: border-box;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    font-style: normal;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
}

.tv-blog {
    width: 100%;
    min-height: 0;
    background: #0d1420;
    color: #f2f6fb;
}

.tv-blog-section {
    width: 100%;
    padding: 38px 0 55px;
    background: #0d1420;
}

.tv-blog-container {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
}

.tv-blog-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 18px;
    color: #7f91a7;
    font-size: 13px;
    line-height: 1.4;
}

.tv-blog-breadcrumbs a {
    color: #1769df;
    text-decoration: none;
}

.tv-blog-breadcrumbs a:hover {
    color: #65a1ff;
    text-decoration: underline;
}

.tv-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 322px;
    gap: 24px;
    align-items: start;
}

.tv-blog-article {
    width: 100%;
    background: #101a28;
    border: 1px solid #273950;
    border-radius: 15px;
    overflow: hidden;
}

.tv-blog-article-inner {
    padding: 40px 48px 46px;
}

.tv-blog-label,
.tv-blog-side-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1769df;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.tv-blog-label::before,
.tv-blog-side-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 3px;
    background: #1769df;
    flex: 0 0 8px;
}

.tv-blog-article h1 {
    margin: 10px 0 17px;
    color: #f2f6fb;
    font-size: clamp(34px, 4.3vw, 52px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.2px;
}

.tv-blog-intro {
    margin: 0;
    max-width: 980px;
    color: #aab9cc;
    font-size: 16px;
    line-height: 1.65;
}

.tv-blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 17px;
    padding: 19px 0 24px;
    margin: 0 0 29px;
    border-bottom: 1px solid #273950;
    color: #7f91a7;
    font-size: 12px;
    line-height: 1.4;
}

.tv-blog-content {
    color: #c3d0df;
    font-size: 16px;
    line-height: 1.8;
}

.tv-blog-content p {
    margin: 0 0 20px;
}

.tv-blog-content h2 {
    margin: 37px 0 12px;
    color: #f2f6fb;
    font-size: 27px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.4px;
}

.tv-blog-content h3 {
    margin: 28px 0 10px;
    color: #f2f6fb;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;
}

.tv-blog-content ul,
.tv-blog-content ol {
    margin: 0 0 21px;
    padding-left: 24px;
}

.tv-blog-content li {
    margin-bottom: 8px;
}

.tv-blog-content a {
    color: #65a1ff;
    text-decoration: none;
}

.tv-blog-content a:hover {
    color: #8bbaff;
    text-decoration: underline;
}

.tv-blog-note {
    margin: 28px 0;
    padding: 17px 19px;
    background: #131f30;
    border: 1px solid #2d4565;
    border-left: 3px solid #1769df;
    border-radius: 10px;
    color: #b9c8da;
    font-size: 15px;
    line-height: 1.7;
}

.tv-blog-sources {
    margin-top: 36px;
    padding: 21px;
    background: #131d2b;
    border: 1px solid #273950;
    border-radius: 13px;
}

.tv-blog-sources h2 {
    margin: 0 0 13px;
    font-size: 20px;
}

.tv-blog-sources ul {
    margin: 0;
}

.tv-blog-sources a {
    color: #65a1ff;
}

.tv-blog-sidebar {
    display: grid;
    gap: 16px;
}

.tv-blog-side-card {
    background: #131d2b;
    border: 1px solid #273950;
    border-radius: 15px;
    padding: 22px;
}

.tv-blog-side-card h2 {
    margin: 9px 0 14px;
    color: #f2f6fb;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.2px;
}

.tv-blog-side-card p {
    margin: 0 0 13px;
    color: #aab9cc;
    font-size: 13px;
    line-height: 1.6;
}

.tv-blog-category-list {
    display: grid;
    gap: 8px;
}

.tv-blog-category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 45px;
    padding: 0 12px;
    background: #172337;
    border: 1px solid #2d4565;
    border-radius: 10px;
    color: #aebdd0;
    font-size: 13px;
    line-height: 1;
    font-weight: 750;
    text-decoration: none;
    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.tv-blog-category-list a:hover,
.tv-blog-category-list a.active {
    background: #1a2a42;
    border-color: #416a9d;
    color: #65a1ff;
}

.tv-blog-category-list a:hover {
    transform: translateX(2px);
}

.tv-blog-side-link {
    display: inline-flex;
    align-items: center;
    color: #1769df !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.tv-blog-side-link:hover {
    color: #65a1ff !important;
    text-decoration: underline;
}


/*
=========================================================
LIGHT MODE
=========================================================
*/

html:not(.dark-mode) .tv-blog,
body:not(.dark-mode) .tv-blog,
html:not(.dark-mode) .tv-blog-section,
body:not(.dark-mode) .tv-blog-section {
    background: #f7faff;
    color: #10213a;
}

html:not(.dark-mode) .tv-blog-article,
body:not(.dark-mode) .tv-blog-article {
    background: #ffffff;
    border-color: #d9e5f5;
}

html:not(.dark-mode) .tv-blog-article h1,
body:not(.dark-mode) .tv-blog-article h1,
html:not(.dark-mode) .tv-blog-content h2,
body:not(.dark-mode) .tv-blog-content h2,
html:not(.dark-mode) .tv-blog-content h3,
body:not(.dark-mode) .tv-blog-content h3,
html:not(.dark-mode) .tv-blog-side-card h2,
body:not(.dark-mode) .tv-blog-side-card h2 {
    color: #101d30;
}

html:not(.dark-mode) .tv-blog-intro,
body:not(.dark-mode) .tv-blog-intro {
    color: #60738c;
}

html:not(.dark-mode) .tv-blog-meta,
body:not(.dark-mode) .tv-blog-meta {
    color: #71849d;
    border-bottom-color: #d9e5f5;
}

html:not(.dark-mode) .tv-blog-content,
body:not(.dark-mode) .tv-blog-content {
    color: #3e5169;
}

html:not(.dark-mode) .tv-blog-note,
body:not(.dark-mode) .tv-blog-note {
    background: #f1f6fd;
    border-color: #d9e5f5;
    border-left-color: #1769df;
    color: #4e6078;
}

html:not(.dark-mode) .tv-blog-sources,
body:not(.dark-mode) .tv-blog-sources,
html:not(.dark-mode) .tv-blog-side-card,
body:not(.dark-mode) .tv-blog-side-card {
    background: #ffffff;
    border-color: #d9e5f5;
}

html:not(.dark-mode) .tv-blog-category-list a,
body:not(.dark-mode) .tv-blog-category-list a {
    background: #f7faff;
    border-color: #d9e5f5;
    color: #536982;
}

html:not(.dark-mode) .tv-blog-category-list a:hover,
html:not(.dark-mode) .tv-blog-category-list a.active,
body:not(.dark-mode) .tv-blog-category-list a:hover,
body:not(.dark-mode) .tv-blog-category-list a.active {
    background: #edf4ff;
    border-color: #9fc3f8;
    color: #1769df;
}

html:not(.dark-mode) .tv-blog-side-card p,
body:not(.dark-mode) .tv-blog-side-card p {
    color: #60738c;
}

html:not(.dark-mode) .tv-blog-breadcrumbs,
body:not(.dark-mode) .tv-blog-breadcrumbs {
    color: #7a8ba1;
}


/*
=========================================================
RESPONSIVE
=========================================================
*/

@media (max-width: 1100px) {

    .tv-blog-container {
        width: calc(100% - 36px);
    }

    .tv-blog-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 18px;
    }

    .tv-blog-article-inner {
        padding: 34px 32px 40px;
    }

}

@media (max-width: 850px) {

    .tv-blog-layout {
        grid-template-columns: 1fr;
    }

    .tv-blog-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 700px) {

    .tv-blog-section {
        padding: 27px 0 40px;
    }

    .tv-blog-container {
        width: calc(100% - 30px);
    }

    .tv-blog-article-inner {
        padding: 25px 19px 31px;
    }

    .tv-blog-article h1 {
        font-size: 31px;
        letter-spacing: -.7px;
    }

    .tv-blog-intro {
        font-size: 14px;
    }

    .tv-blog-content {
        font-size: 15px;
        line-height: 1.75;
    }

    .tv-blog-content h2 {
        font-size: 23px;
    }

    .tv-blog-sidebar {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 400px) {

    .tv-blog-container {
        width: calc(100% - 22px);
    }

    .tv-blog-article-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .tv-blog-article h1 {
        font-size: 28px;
    }

}
