:root {
    --color-primary: #e62323;
    --bg: #ffffff;
    --card: #ffffff;
    --bs-heading-color: #222;
    --bs-table-color-state: #222;
    --text: #222;
    --muted: #6c757d;
    --bs-secondary-color: #6c757d;
    --accent: #d9534f;
    --border: rgba(0, 0, 0, 0.08);
    --social-bg: #f3f3f3;
    --social-color: #333;
    --social-hover-bg: #111;
    --social-hover-text: #fff;
    --bs-card-color: inherit !important;
    --bs-body-bg: #ffffff;
    --bs-table-bg: #ffffff;
}

[data-theme='dark'] {
    --bg: #0b0d10;
    --card: #0f1317;
    --bs-heading-color: #e6eef3;
    --bs-table-color-state: #e6eef3;
    --text: #e6eef3;
    --muted: #98a1a8;
    --bs-secondary-color: #98a1a8;
    --accent: #ff7b7b;
    --border: rgba(255, 255, 255, 0.06);
    --social-bg: #1f1f1f;
    --social-color: #ddd;
    --social-hover-bg: #fff;
    --social-hover-text: #000;
    --bs-card-color: inherit !important;
    --bs-card-bg-color: #4244461c;
    --bs-body-bg: #0b0d10;
    --bs-table-bg: #0b0d10;
}

.form-control,
.table>:not(caption)>*>*{
    color: var(---bs-table-color-state);
    background-color: var(--bs-body-bg);
}

html,
body,
p,
h1,
h2 {
    background: var(--bg);
    color: var(--text);
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.active>.page-link {
    color: var(--color-primary) !important;
}

a {
    color: var(--text) !important;
}

a:hover {
    color: var(--color-primary) !important;
}

/* container sizing for TV and desktop */
.site-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 80vh !important;
}

@media (min-width:1600px) {
    .site-container {
        max-width: 1800px;
        padding: 0 40px;
    }
}

/* Header */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    background: inherit;
}

.site-logo {
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 22px
}

.nav-toggle {
    display: flex;
    gap: .6rem;
    align-items: center
}

/* Hero */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 18px;
    align-items: start
}

@media (max-width:991.98px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.featured {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    height: -webkit-fill-available;
    min-height: 250px;
    max-height: 775px;
}

.stack-cards>.featured {
    max-height: 250px;
}

.featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.meta h3 a,
.featured .meta {
    color: #ffffff !important;
    font-size: 18px;
}

.featured .meta {
    position: absolute;
    left: 16px;
    bottom: 16px;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .45)
}

/* Overlay Gradient */
.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.85));
    z-index: 1;
}

/* Text Layer */
.featured .meta {
    z-index: 2;
}

/* Dark Mode Boost */
.dark-mode .featured-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.90));
}

.dark-mode .featured .meta h3,
.dark-mode .featured .meta small {
    color: #fff !important;
}

.stack-cards {
    display: grid;
    gap: 12px
}

.stack-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    background: var(--card);
    border: 1px solid var(--border)
}

.stack-card img {
    width: 92px;
    height: 62px;
    object-fit: cover;
    border-radius: 4px
}

/* Articles list */
.article-list .article {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border)
}

.article-list .article img {
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px
}

.article .meta small {
    color: var(--muted);
}

.article-img {
    width: 300px;
}

/* Equal height cards */
.article-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
}

.article-card img {
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.article-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Sidebar */
.sidebar .card {
    background: var(--card);
    border: 1px solid var(--border)
}

/* Footer */
footer {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    margin-top: 32px
}

/* light/dark transition */
.theme-transition {
    transition: background .3s ease, color .3s ease
}

/* pagination */
.nav-pagination {
    margin: 2rem 0;
}

.pagination {
    justify-content: center;
    margin-top: 1.5rem !important;
    flex-wrap: wrap;
}

.pagination .page-link {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

/* Pagination Styling */
.pagination-fx .page-link {
    color: var(--text);
    border: 1px solid var(--border);
    background: var(--card);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    transition: all .25s ease;
}

.pagination-fx .page-link:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.pagination-fx .page-item.active .page-link {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.pagination-fx .page-item.disabled .page-link {
    opacity: .4;
    cursor: not-allowed;
    background: var(--card);
}

/* Improve spacing */
.pagination-fx .page-item {
    margin: 0 2px;
}

/* Dark mode hover fix */
[data-theme='dark'] .pagination-fx .page-link:hover {
    color: #fff;
}

.theme-transition {
    padding: 0 20px;
}

/* Social Icons */
.social-icons {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-icons li a {
    display: flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: var(--social-bg, #f3f4f6);
    color: var(--social-color, #555);
    transition: all .25s ease;
    text-decoration: none;
    font-size: 1.25rem;
}

.social-icons li a:hover {
    transform: translateY(-3px);
    background: var(--social-hover-bg, #000);
    color: var(--social-hover-text, #fff);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.google-auto-placed,
.lazyhtml {
    display: flex;
    justify-content: center;
    min-width: 250px !important;
    max-width: 100% !important;
    min-height: 70px !important;
}

.adsbygoogle,
.ads-content-unit2,
.ads-content-unit {
    min-width: 250px !important;
    max-width: 100% !important;
    margin: 1rem -10px !important;
    text-align: center;
    clear: both;
    overflow: hidden !important;
    flex: 1;
}

.ads-content-unit {
    margin: 45px 0;
}

.flex-aligner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.adsbygoogle,
ins {
    display: block;
    text-align: center;
    flex: 1;
    min-width: 250px !important;
    max-width: 100% !important;
    min-height: 100px !important;
    background: transparent !important;
}

.h-90px {
    min-height: 90px !important;
    height: 95px;
}

.ads-300w {
    /*width:auto;*/
    height: 95px;
}

.max-w-300px{
    max-width: 300px !important;
}

img, svg{
    max-width: 100%;
}

figure{
    background: #7a7a7a17 !important;
}

/* small tweaks for mobile */
@media (max-width:575.98px) {
    .top-ads,
    .top-ads .ads-content-unit2 {
        height: 412px;
    }
    .site-logo {
        font-size: 18px
    }

    .stack-card img {
        width: 72px;
        height: 48px
    }

    .article-list .article {
        flex-direction: column;
    }

    .theme-transition {
        padding: 0 10px;
    }
    .site-container{
        padding: 0;
    }
    .article-img,
    .article-list .article img {
        width: 100%;
        height: 250px;
    }
}

.lazyhtml {
    --bs-gutter-x: 0 !important;
    --bs-gutter-y: 0 !important;
}

iframe {
    width: 100%;
}
h1, h2, h3, h4, h5, h6{
    margin-top: 1rem;
}
blockquote,
figure {
    margin: 1rem;
    text-align: center;
}
table {
    --bs-table-color: var(--bs-body-color);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--bs-border-color);
    --bs-table-accent-bg: transparent;
    --bs-table-striped-color: var(--bs-body-color);
    --bs-table-striped-bg: rgba(0, 0, 0, 0.05);
    --bs-table-active-color: var(--bs-body-color);
    --bs-table-active-bg: rgba(0, 0, 0, 0.1);
    --bs-table-hover-color: var(--bs-body-color);
    --bs-table-hover-bg: rgba(0, 0, 0, 0.075);
    width: 100%;
    margin-bottom: 1rem;
    vertical-align: top;
    border-color: var(--bs-table-border-color);
    text-align: left;
}

table>tbody {
    vertical-align: inherit;
}
table>:not(caption)>*>* {
    padding: 1rem 1rem;
    background-color: var(--bs-table-bg);
    border-bottom-width: 1px;
    box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
}
table>:not(caption)>*>* {
    padding: 1rem 1rem;
}
.featured-image{
    max-height:450px;
    overflow: hidden;
}
.post-content >img{
    display:block;
}
[data-uc-img], [uc-img] {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    vertical-align: middle;
}
.uc-pageloader {position: fixed; top: 0; left: 0; bottom: 0; right: 0; display: flex; justify-content: center; align-items: center;z-index: 99999; background-color: white;}.uc-dark .uc-pageloader, .uc-pageloader:where(.uc-dark) {background-color: #131313;}.uc-pageloader>.loading {display: inline-block; position: relative; width: 40px; height: 40px;}.uc-pageloader>.loading>div {box-sizing: border-box; display: block; position: absolute;width: 40px; height: 40px; margin: 0;border: 4px solid transparent; border-radius: 50%;animation: uc-loading 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;border-color: var(--color-primary) transparent transparent transparent;} .uc-pageloader>.loading>div:nth-child(1) { animation-delay: -0.1s; } .uc-pageloader>.loading>div:nth-child(2) { animation-delay: -0.2s; } .uc-pageloader>.loading>div:nth-child(3) { animation-delay: -0.3s; } @keyframes uc-loading { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } html.show-preloader body { display: none; }
/* Search icon */
.search-icon {
    font-size: 22px;
    cursor: pointer;
    user-select: none;
}

/* Overlay background */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 89%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* Search box */
.search-box {
    background: #ffffff52;
    padding: 20px;
    border-radius: 6px;
    width: 90%;
    max-width: 750px;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 10px;
    font-size: 16px;
}

.search-box button {
    padding: 10px 16px;
    font-size: 16px;
    cursor: pointer;
}

/* Close on hover */
.search-overlay:hover {
    cursor: pointer;
}

.search-box:hover {
    cursor: default;
}
/* Close button */
.close-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: transparent;
    font-size: 50px!important;
    cursor: pointer;
    line-height: 1;
    color: #ff0000;
}

.close-btn:hover {
    color: #ffffff;
}
