/* Beawar Daily News — premium public styles (Bootstrap 5 base).
   Colours / font / radius come from Admin → Site settings → Appearance. */
:root {
    --brand: #e65100;
    --brand-dark: #bf360c;
    --brand-rgb: 230,81,0;
    --on-brand: #ffffff;
    --topbar: #2b1a0e;
    --on-topbar: #ffffff;
    --footer: #2b1a0e;
    --footer-bottom: #1a1008;
    --on-footer: #ffffff;
    --ink: #2b1a0e;
    --muted: #6b6b70;
    --surface: #ffffff;
    --bg: #f7f2ec;
    --radius: .7rem;
    --container: 1320px;
    --ticker-duration: 45s;
    --font: "Hind", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-hi: "Hind", system-ui, sans-serif;
    --line: #ebe4db;
    --line-strong: #d8cfc3;
    --text-2: #4a3f36;
    --soft: #e8e0d6;
    --soft-bg: #f3eee8;
    --link: var(--brand);
    --shadow: 0 8px 28px rgba(43, 26, 14, .08);
    --shadow-sm: 0 2px 10px rgba(43, 26, 14, .06);
}

html[data-bs-theme="dark"] {
    --bg: #12100e;
    --surface: #1c1916;
    --ink: #f3ebe3;
    --muted: #a89f95;
    --line: #342f2a;
    --line-strong: #4a433c;
    --text-2: #d2c8bd;
    --soft: #2a2622;
    --soft-bg: #24201c;
    --link: color-mix(in srgb, var(--brand) 45%, #ffffff);
    --shadow: 0 10px 30px rgba(0,0,0,.35);
    --shadow-sm: 0 2px 10px rgba(0,0,0,.25);
}

body {
    font-family: var(--font);
    background:
        radial-gradient(1200px 500px at 10% -10%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 60%),
        radial-gradient(900px 420px at 100% 0%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 55%),
        var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
body.lang-hi { font-family: var(--font-hi); line-height: 1.7; }
@media (min-width: 1400px) { .container { max-width: var(--container); } }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--link); }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: var(--surface); padding: .5rem 1rem; border-radius: .3rem; box-shadow: var(--shadow-sm); }
.min-w-0 { min-width: 0; }
.accent { color: var(--accent, var(--brand)); }

/* Utility bar + header */
.utility-bar { background: var(--topbar); color: var(--on-topbar); padding: .4rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.utility-bar a { color: var(--on-topbar); opacity: .85; }
.utility-bar a:hover { color: var(--on-topbar); opacity: 1; }
.utility-bar .dropdown-menu a { opacity: 1; color: var(--bs-dropdown-link-color); }
.lang-switch .btn { padding: .1rem .55rem; font-size: .72rem; font-weight: 600; color: var(--on-topbar); border: 1px solid color-mix(in srgb, var(--on-topbar) 55%, transparent); opacity: .9; border-radius: .35rem; }
.lang-switch .btn.active { background: var(--on-topbar); color: var(--topbar); opacity: 1; }
.weather-chip { background: rgba(255,255,255,.1); padding: .15rem .6rem; border-radius: 999px; backdrop-filter: blur(4px); }
.site-header { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--ink); min-width: 0; }
.brand-logo { width: 58px; height: 58px; object-fit: contain; border-radius: 50%; flex-shrink: 0; background: #fff; box-shadow: var(--shadow-sm), 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.brand-mark { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(145deg, var(--brand), var(--brand-dark)); color: var(--on-brand); display: grid; place-items: center; font-weight: 800; font-size: 1.55rem; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.brand-copy { min-width: 0; display: flex; flex-direction: column; }
.brand-text { font-weight: 800; font-size: clamp(1.15rem, 2.4vw, 1.6rem); color: var(--link); line-height: 1.12; letter-spacing: -.015em; }
.brand-tagline { color: var(--muted); font-size: .78rem; margin-top: .12rem; font-weight: 500; }
@media (max-width: 575.98px) { .brand-logo { width: 44px; height: 44px; } .brand-text { font-size: 1.05rem; } }
.header-ad .ad-slot { display: inline-block; max-width: 728px; margin: 0; }
.main-nav { background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 88%, #000)); padding: 0; box-shadow: 0 4px 14px rgba(var(--brand-rgb), .25); }
.main-nav .nav-link { color: var(--on-brand) !important; opacity: .94; font-weight: 600; padding: .78rem .85rem !important; white-space: nowrap; letter-spacing: .01em; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { background: rgba(0,0,0,.18); color: #fff !important; opacity: 1; }
.main-nav .navbar-toggler { border: 0; padding: .25rem 0; color: var(--on-brand); }
.main-nav .navbar-toggler:focus { box-shadow: none; }
.sticky-header .main-nav { position: sticky; top: 0; z-index: 1030; }
.search-mobile { max-width: 60%; }
.suggest-box { position: absolute; top: 100%; left: 0; right: 0; z-index: 1050; max-height: 360px; overflow: auto; text-align: left; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Breaking ticker */
.breaking-bar { background: var(--surface); border-bottom: 3px solid var(--brand); overflow: hidden; box-shadow: var(--shadow-sm); }
.breaking-label { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: var(--on-brand) !important; font-weight: 800; padding: .5rem 1rem; white-space: nowrap; margin-right: .75rem; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; animation: pulse 2s infinite; }
.ticker { overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-track { display: inline-block; animation: ticker var(--ticker-duration) linear infinite; padding: .5rem 0; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track a { font-weight: 650; }
.ticker-track .sep { color: var(--brand); margin: 0 1rem; font-size: .6rem; vertical-align: middle; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 50% { filter: brightness(1.08); } }
@media (prefers-reduced-motion: reduce) { .ticker-track, .breaking-label { animation: none; } .ticker { overflow-x: auto; } }

/* Section headings */
.section-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--line); margin-bottom: 1.1rem; }
.section-head h2 { font-size: 1.2rem; font-weight: 800; margin: 0; padding-bottom: .5rem; border-bottom: 3px solid var(--accent, var(--brand)); margin-bottom: -2px; letter-spacing: -.01em; }
.section-head a { font-size: .85rem; color: var(--link); font-weight: 700; }
.section-head.sm h2 { font-size: 1.02rem; }
.section-head.dark { border-color: rgba(255,255,255,.2); }
.section-head.dark h2, .section-head.dark a { color: #fff; }

/* Cards */
.news-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); transition: transform .2s ease, box-shadow .2s ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.news-card:hover .thumb img { transform: scale(1.04); }
.card-title-news { font-size: 1.02rem; font-weight: 750; line-height: 1.4; margin: .3rem 0 .4rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cat-link { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.cat-badge { display: inline-block; color: #fff !important; font-size: .72rem; font-weight: 800; padding: .22rem .55rem; border-radius: .3rem; background: var(--brand); letter-spacing: .03em; }
.meta { font-size: .78rem; color: var(--muted); }
.excerpt { font-size: .92rem; color: var(--text-2); margin-bottom: .4rem; }

.list-card { background: var(--surface); border-radius: var(--radius); padding: .7rem; box-shadow: var(--shadow-sm); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.list-thumb { width: 130px; aspect-ratio: 4 / 3; border-radius: min(var(--radius), .45rem); overflow: hidden; background: var(--soft); }
.list-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.list-card:hover .list-thumb img { transform: scale(1.05); }
.list-title { font-size: 1rem; font-weight: 750; line-height: 1.4; margin: .1rem 0 .3rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 768px) { .list-thumb { width: 180px; } }

.cards-border .news-card, .cards-border .list-card, .cards-border .sponsored-card { box-shadow: none; border: 1px solid var(--line); }
.cards-flat .news-card, .cards-flat .list-card, .cards-flat .sponsored-card { box-shadow: none; }
.cards-border .news-card:hover, .cards-flat .news-card:hover { transform: none; box-shadow: none; }
.cards-border .news-card:hover { border-color: var(--brand); }

.mini-title { font-size: .94rem; font-weight: 650; line-height: 1.4; margin: 0 0 .15rem; }
.ranked-list li { padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.ranked-list li:last-child { border-bottom: 0; }
.rank { font-size: 1.55rem; font-weight: 800; color: color-mix(in srgb, var(--brand) 35%, var(--line-strong)); min-width: 1.8rem; line-height: 1; }

.hero-card { border-radius: calc(var(--radius) + .15rem); overflow: hidden; position: relative; background: #1a120c; box-shadow: var(--shadow); }
.hero-card img { aspect-ratio: 16 / 9; object-fit: cover; display: block; width: 100%; transform: scale(1.01); }
.hero-overlay { position: absolute; inset: auto 0 0 0; padding: 4rem 1.35rem 1.35rem; background: linear-gradient(transparent, rgba(0,0,0,.55) 35%, rgba(0,0,0,.92)); color: #fff; }
.hero-title { font-size: 1.2rem; font-weight: 800; line-height: 1.3; margin: .55rem 0 .35rem; color: #fff; letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
@media (min-width: 768px) { .hero-title { font-size: 1.85rem; } }
#heroCarousel .carousel-indicators { margin-bottom: .5rem; justify-content: flex-end; margin-right: 1rem; }
#heroCarousel .carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: .45; }
#heroCarousel .carousel-indicators .active { opacity: 1; background: var(--brand); }
.play-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(var(--brand-rgb),.92); color: var(--on-brand); display: grid; place-items: center; font-size: 1.55rem; box-shadow: 0 8px 24px rgba(0,0,0,.35); backdrop-filter: blur(2px); }
.play-badge.sm { width: 34px; height: 34px; font-size: 1rem; }
.video-strip { background: linear-gradient(160deg, #1a120c, #2b1a0e 55%, #1d1410); border: 1px solid rgba(255,255,255,.06); }
.video-strip .news-card { background: rgba(255,255,255,.04); color: #eee; border-color: rgba(255,255,255,.08); }
.video-strip .news-card .meta { color: #aaa; }

/* Sidebar */
@media (min-width: 992px) { .sidebar-sticky { position: sticky; top: 1rem; } .sticky-header .sidebar-sticky { top: 3.85rem; } }
.card.border-0.shadow-sm { border: 1px solid var(--line) !important; box-shadow: var(--shadow-sm) !important; border-radius: var(--radius) !important; overflow: hidden; }
.weather-icon { font-size: 2.6rem; color: #f2a900; filter: drop-shadow(0 2px 6px rgba(242,169,0,.35)); }
.weather-temp { font-size: 2.1rem; font-weight: 800; line-height: 1; }

/* Ads */
.ad-slot { text-align: center; position: relative; margin-left: auto; margin-right: auto; padding: .4rem; background: color-mix(in srgb, var(--surface) 94%, var(--line)); border: 1px dashed var(--line); border-radius: var(--radius); }
.ad-slot img { max-width: 100%; height: auto; border-radius: .4rem; display: inline-block; vertical-align: middle; box-shadow: var(--shadow-sm); }
.ad-label { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .25rem; font-weight: 700; }
.ad-frame { width: 100%; min-height: 250px; border: 0; }
.ad-header_top { max-width: 728px; margin-left: auto; background: transparent; border: 0; padding: 0; }
.ad-header_top .ad-frame { min-height: 90px; }
.ad-below_breaking, .ad-home_between_sections, .ad-category_top, .ad-article_top, .ad-article_bottom, .ad-footer { max-width: 970px; }
.ad-sidebar_top, .ad-sidebar_sticky, .ad-article_inline { max-width: 300px; }
.header-ad .ad-slot { display: inline-block; max-width: 728px; margin: 0 0 0 auto; background: transparent; border: 0; padding: 0; }
.sponsored-card { background: var(--surface); padding: .65rem; border-radius: var(--radius); text-align: left; align-items: center; border: 1px solid var(--line); }
.sponsored-card img { width: 90px; height: 64px; object-fit: cover; border-radius: .35rem; }
#adPopup .modal-content { max-width: 420px; margin: auto; }
#adPopup img { border-radius: .6rem; box-shadow: 0 18px 50px rgba(0,0,0,.4); }

/* Article */
.article { background: var(--surface); border-radius: calc(var(--radius) + .1rem); padding: 1.35rem; box-shadow: var(--shadow-sm); border: 1px solid color-mix(in srgb, var(--line) 65%, transparent); }
@media (min-width: 768px) { .article { padding: 2.15rem; } }
.article-title { font-size: 1.65rem; font-weight: 800; line-height: 1.3; letter-spacing: -.015em; }
@media (min-width: 768px) { .article-title { font-size: 2.2rem; } }
.article-excerpt { color: var(--text-2); font-size: 1.12rem; }
.article-figure figcaption { font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.article-body { font-size: 1.1rem; line-height: 1.9; overflow-wrap: anywhere; }
.lang-hi .article-body { font-size: 1.16rem; line-height: 2; }
.article-body img { max-width: 100%; height: auto; border-radius: min(var(--radius), .45rem); }
.article-body iframe { max-width: 100%; }
.article-body .video-embed, .article-body .ratio { margin: 1rem 0; }
.article-body blockquote { border-left: 4px solid var(--brand); padding: .35rem 1.1rem; color: var(--text-2); background: rgba(var(--brand-rgb),.06); border-radius: 0 var(--radius) var(--radius) 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.article-body td, .article-body th { border: 1px solid var(--line); padding: .45rem; }
.article-body a { color: var(--link); text-decoration: underline; }
.gallery-item img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: .4rem; }
.gallery-full { max-height: 78vh; }
.gallery-nav { position: absolute; top: 45%; opacity: .85; }
.gallery-nav.prev { left: .75rem; }
.gallery-nav.next { right: .75rem; }
.author-box { background: var(--soft-bg); border: 1px solid var(--line); }
.tags .badge { font-weight: 600; font-size: .82rem; margin: 0 .2rem .3rem 0; }

/* Listen (TTS) */
.listen-box { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.listen-box .btn { font-weight: 700; border-radius: 999px; padding: .35rem .9rem; }
.listen-box.is-listening .listen-toggle { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 4px 14px rgba(var(--brand-rgb), .28); }
.listen-status { font-weight: 600; }

/* Comments */
.comments-box { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.comment-form .hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.comment-item { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.comment-item:last-child { border-bottom: 0; }

/* Share buttons */
.share-box { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.share-btn { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff !important; border: 0; font-size: 1rem; transition: transform .12s, box-shadow .12s; box-shadow: var(--shadow-sm); }
.share-btn:hover { transform: translateY(-2px) scale(1.05); }
.share-btn.wa { background: #25d366; } .share-btn.fb { background: #1877f2; } .share-btn.x { background: #111; }
.share-btn.tg { background: #229ed9; } .share-btn.li { background: #0a66c2; } .share-btn.em { background: #777; }
.share-btn.cp, .share-btn.native { background: #444; }

/* Listing */
.listing-head { background: var(--surface); border-radius: var(--radius); padding: 1.35rem; border-left: 5px solid var(--accent, var(--brand)); box-shadow: var(--shadow-sm); }
.pinned { background: rgba(var(--brand-rgb),.07); border: 1px solid rgba(var(--brand-rgb),.22); }

/* Footer */
.site-footer { background: linear-gradient(180deg, color-mix(in srgb, var(--footer) 92%, #000), var(--footer)); color: var(--on-footer); margin-top: 2rem; }
.site-footer p, .site-footer .form-check-label, .site-footer .small { opacity: .82; }
.site-footer .text-white { color: var(--on-footer) !important; }
.site-footer a { color: var(--on-footer); opacity: .88; }
.site-footer a:hover { color: var(--on-footer); opacity: 1; text-decoration: underline; }
.site-footer .btn-outline-light { --bs-btn-color: var(--on-footer); --bs-btn-border-color: var(--on-footer); --bs-btn-hover-bg: var(--on-footer); --bs-btn-hover-color: var(--footer); }
.footer-links li { margin-bottom: .4rem; font-size: .92rem; }
.footer-bottom { background: var(--footer-bottom); color: var(--on-footer); opacity: .92; }

/* Misc */
.toast-brand { background: var(--brand); color: var(--on-brand); }
.pagination { flex-wrap: wrap; }
.page-link { color: var(--link); border-radius: .4rem !important; margin: 0 .12rem; }
.active > .page-link, .page-link.active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-danger { background: linear-gradient(180deg, var(--brand), var(--brand-dark)); border-color: var(--brand-dark); color: var(--on-brand); box-shadow: 0 4px 12px rgba(var(--brand-rgb), .25); }
.btn-danger:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline-danger { color: var(--link); border-color: var(--brand); }
.btn-outline-danger:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.flash { outline: 2px solid #25d366; }
.breadcrumb { --bs-breadcrumb-divider-color: var(--muted); }
.breadcrumb-item a { color: var(--link); font-weight: 600; }
