/* ============================================================
   Thynk Bihar News - Frontend Stylesheet
   Original editorial news design, mobile-first
   ============================================================ */
:root {
  --brand: #c00000;
  --brand-dark: #9a0000;
  --brand-light: #ff4d4d;
  --dark: #1a1a1a;
  --text: #222222;
  --muted: #666666;
  --border: #e5e5e5;
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --bg-light: #f2f2f2;
  --card: #ffffff;
  --nav: #ffffff;
}
[data-theme="dark"] {
  --dark: #eaeaea;
  --text: #e6e6e6;
  --muted: #a0a0a0;
  --border: #3a3a3a;
  --bg: #121212;
  --bg-alt: #1a1a1a;
  --bg-light: #1f1f1f;
  --card: #1a1a1a;
  --nav: #1a1a1a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans Devanagari', 'Mukta', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding-bottom: 60px;
  line-height: 1.6;
  transition: background .3s, color .3s;
}
@media (min-width: 768px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
.container { max-width: 1280px; }

.btn-brand {
  background: var(--brand);
  color: #fff;
  border: none;
}
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

/* ---- Top bar ---- */
.topbar {
  background: var(--dark);
  color: #ccc;
  font-size: .8rem;
  padding: 6px 0;
}
.topbar a { color: #ccc; }
.topbar a:hover { color: #fff; }
.topbar-link { margin-left: 8px; }
.social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.1); margin-left: 6px; font-size: .75rem;
}
.social-icons a:hover { background: var(--brand); color: #fff; }
.btn-dark-mode {
  background: transparent; color: #ffc107; border: none; font-size: 1rem;
}

/* ---- Main header ---- */
.main-header {
  background: var(--nav);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
[data-theme="dark"] .main-header { box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; }
.brand-text {
  font-size: 1.7rem; font-weight: 800; color: var(--brand);
  font-family: 'Mukta', sans-serif; letter-spacing: .5px; line-height: 1;
}
.brand-tagline { font-size: .7rem; color: var(--muted); }
.brand-logo { max-height: 48px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-light); color: var(--text); font-size: 1.1rem;
}
.hamburger { font-size: 1.3rem; color: var(--text); }

/* ---- Main navigation ---- */
.main-nav { border-top: 1px solid var(--border); }
.nav-list {
  display: flex; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-item { position: relative; white-space: nowrap; }
.nav-link {
  display: block; padding: 12px 16px; color: var(--text);
  font-weight: 600; font-size: .95rem;
}
.nav-link:hover { color: var(--brand); background: var(--bg-alt); }
.nav-item.has-dropdown .dropdown {
  display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--card); box-shadow: 0 6px 20px rgba(0,0,0,.15); z-index: 50;
  list-style: none; padding: 6px 0; border-radius: 0 0 6px 6px;
}
.nav-item.has-dropdown:hover .dropdown { display: block; }
.dropdown-link { display: block; padding: 8px 16px; color: var(--text); font-size: .9rem; }
.dropdown-link:hover { background: var(--bg-alt); color: var(--brand); }

/* ---- Breaking bar ---- */
.breaking-bar {
  background: var(--brand);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.breaking-label {
  background: var(--brand-dark);
  padding: 8px 16px; font-weight: 800; display: flex; align-items: center;
  gap: 8px; z-index: 2;
}
.blink-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: .2; } }
.breaking-ticker { flex: 1; overflow: hidden; }
.ticker-track {
  display: flex; gap: 0;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  color: #fff; padding: 8px 24px; font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.ticker-item:hover { color: #fff; text-decoration: underline; }
.ticker-index { color: rgba(255,255,255,.7); font-family: monospace; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Search overlay ---- */
.search-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.9);
  z-index: 200; align-items: center; justify-content: center; padding: 20px;
}
.search-overlay.active { display: flex; }
.search-box { width: 100%; max-width: 700px; position: relative; }
.search-input { font-size: 1.4rem; padding: 14px 20px; }
.search-close {
  position: fixed; top: 20px; right: 20px; background: transparent;
  color: #fff; border: none; font-size: 2rem;
}
.suggestions { background: #fff; border-radius: 6px; margin-top: 6px; max-height: 400px; overflow-y: auto; }
.suggestions a { display: block; padding: 10px 16px; color: #222; border-bottom: 1px solid #eee; }
.suggestions a:hover { background: #f5f5f5; }

/* ---- Hero ---- */
.hero-section { padding: 20px 0; }
.hero-main {
  position: relative; border-radius: 10px; overflow: hidden; height: 480px; display: flex; align-items: flex-end;
}
.hero-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-main .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.15) 60%, transparent);
}
.hero-content { position: relative; padding: 24px; color: #fff; }
.hero-cat {
  background: var(--brand); color: #fff; padding: 3px 12px; border-radius: 3px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.hero-title {
  font-size: 1.7rem; font-weight: 800; margin: 12px 0 8px; line-height: 1.25;
  font-family: 'Mukta', sans-serif;
}
.hero-meta { font-size: .8rem; opacity: .9; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-meta .author { display: flex; align-items: center; gap: 6px; }

.hero-side {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 16px; height: 480px;
  overflow-y: auto;
}
.hero-side-title {
  font-size: 1rem; font-weight: 800; padding-bottom: 12px; border-bottom: 2px solid var(--brand);
  margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; color: var(--text);
}
.hero-side-item {
  display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); align-items: flex-start;
}
.hero-side-item:last-child { border-bottom: none; }
.hero-side-item .hs-index {
  font-size: 1.4rem; font-weight: 800; color: var(--border); line-height: 1;
  min-width: 24px; font-family: 'Mukta', sans-serif;
}
.hero-side-item a { color: var(--text); font-weight: 600; font-size: .9rem; line-height: 1.4; }
.hero-side-item a:hover { color: var(--brand); }
.hero-side-img { width: 70px; height: 50px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }

/* ---- Section blocks ---- */
.section-block { margin: 30px 0; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid var(--brand); padding-bottom: 8px; margin-bottom: 16px;
}
.section-title {
  font-size: 1.2rem; font-weight: 800; color: var(--brand); margin: 0;
  display: flex; align-items: center; gap: 8px; font-family: 'Mukta', sans-serif;
}
.section-title::before { content: ''; width: 18px; height: 3px; background: var(--brand); display: inline-block; }
.section-link { font-size: .8rem; color: var(--muted); font-weight: 600; }
.section-link:hover { color: var(--brand); }

/* ---- News cards ---- */
.card-list { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .card-list.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .card-list.three { grid-template-columns: repeat(3, 1fr); } }
.news-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.news-card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.news-card-img { width: 100%; height: 100%; object-fit: cover; }
.news-card-cat {
  position: absolute; top: 10px; left: 10px; background: var(--brand); color: #fff;
  padding: 2px 10px; border-radius: 3px; font-size: .7rem; font-weight: 700;
}
.news-card-body { padding: 14px; }
.news-card-title {
  font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin: 0 0 8px; color: var(--text);
  font-family: 'Mukta', sans-serif;
}
.news-card-title a { color: inherit; }
.news-card-title a:hover { color: var(--brand); }
.news-card-desc { font-size: .85rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-meta {
  font-size: .75rem; color: var(--muted); margin-top: 10px; display: flex; justify-content: space-between;
}

/* ---- List row (for sidebars) ---- */
.mini-list { list-style: none; padding: 0; margin: 0; }
.mini-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.mini-item:last-child { border-bottom: none; }
.mini-thumb { width: 90px; height: 62px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.mini-body { flex: 1; }
.mini-title { font-size: .88rem; font-weight: 600; margin: 0 0 4px; line-height: 1.3; }
.mini-title a { color: var(--text); }
.mini-title a:hover { color: var(--brand); }
.mini-meta { font-size: .72rem; color: var(--muted); }

/* ---- Sidebar ---- */
.sidebar-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; margin-bottom: 20px;
}
.sidebar-title {
  font-size: 1rem; font-weight: 800; color: var(--text);
  border-bottom: 2px solid var(--brand); padding-bottom: 8px; margin-bottom: 14px;
  font-family: 'Mukta', sans-serif;
}

/* ---- Ad slots ---- */
.ad-slot { text-align: center; margin: 20px auto; background: var(--bg-alt); border-radius: 8px; padding: 10px; }
.ad-slot.ad-sidebar { min-height: 250px; }
.ad-label { font-size: .65rem; color: #999; letter-spacing: 1px; text-transform: uppercase; }

/* ---- Home ads grid ---- */
.ad-section { background: var(--bg-alt); }
.ad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.ad-grid-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px; display: flex; align-items: center; justify-content: center;
  min-height: 140px; overflow: hidden; text-align: center;
}
.ad-grid-item a { display: block; width: 100%; }
.ad-grid-item img {
  width: 100%; height: 100%; max-height: 220px; object-fit: contain; display: block; border-radius: 4px;
}
@media (max-width: 575px) {
  .ad-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ad-grid-item { min-height: 110px; }
}

/* ---- Breadcrumbs ---- */
.breadcrumbs { padding: 14px 0 0; font-size: .82rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs .sep { margin: 0 8px; opacity: .5; }
.breadcrumbs .current { color: var(--text); font-weight: 600; }

/* ---- Category page ---- */
.category-hero { padding: 20px 0; }

/* ---- Article page ---- */
.article-page { padding: 20px 0 40px; }
.article-cat { color: var(--brand); font-weight: 700; font-size: .85rem; text-transform: uppercase; }
.article-h1 {
  font-size: 1.8rem; font-weight: 800; margin: 10px 0; line-height: 1.25;
  font-family: 'Mukta', sans-serif; color: var(--text);
}
.article-deck { font-size: 1.05rem; color: var(--muted); margin-bottom: 16px; }
.article-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 10px 0; margin: 14px 0;
}
.article-author { display: flex; align-items: center; gap: 10px; }
.article-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.article-author-name { font-weight: 700; font-size: .9rem; }
.article-author-desig { font-size: .72rem; color: var(--muted); }
.article-datetime { font-size: .8rem; color: var(--muted); }

.share-btns { display: flex; gap: 6px; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 34px; height: 34px; border-radius: 6px; color: #fff; font-size: .85rem;
}
.share-btn.whatsapp { background: #25D366; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #000; }
.share-btn.telegram { background: #229ED9; }
.share-btn.copy { background: #6c757d; }
.read-tools { display: flex; align-items: center; gap: 4px; }
.read-tools button { background: transparent; border: 1px solid var(--border); border-radius: 4px; padding: 3px 8px; color: var(--text); }
.tool-icon-btn { background: transparent; border: none; color: var(--muted); font-size: 1rem; margin-left: 4px; }
.tool-icon-btn:hover { color: var(--brand); }

.article-featured-image { margin: 16px 0; }
.article-featured-image img { width: 100%; border-radius: 10px; }
.image-caption { font-size: .8rem; color: var(--muted); margin-top: 6px; text-align: center; }

.article-body {
  font-size: 1.05rem; line-height: 1.9; color: var(--text);
}
.article-body[data-size="l"] { font-size: 1.2rem; }
.article-body[data-size="s"] { font-size: .95rem; }
.article-body p { margin: 0 0 18px; }
.article-body h2 { font-size: 1.4rem; font-weight: 800; margin: 24px 0 12px; font-family: 'Mukta', sans-serif; }
.article-body h3 { font-size: 1.2rem; font-weight: 700; margin: 20px 0 10px; }
.article-body img { border-radius: 8px; margin: 12px 0; }
.article-body blockquote {
  border-left: 4px solid var(--brand); background: var(--bg-alt);
  padding: 14px 18px; margin: 18px 0; font-style: italic; font-size: 1.1rem; border-radius: 0 8px 8px 0;
}
.article-body .highlight-box {
  background: #fffbea; border: 1px solid #f0d27c; padding: 14px 16px; border-radius: 8px; margin: 16px 0;
}
.article-body .note-box { background: #e8f4fd; border-left: 4px solid #2c7be5; padding: 12px 16px; margin: 16px 0; border-radius: 0 8px 8px 0; }
.article-body .pull-quote { font-size: 1.5rem; font-weight: 800; color: var(--brand); text-align: center; margin: 24px 0; line-height: 1.3; font-family:'Mukta',sans-serif; }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 8px 12px; }
.article-body th { background: var(--bg-alt); }

.tags-wrap { margin: 24px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip { background: var(--bg-alt); border: 1px solid var(--border); padding: 5px 14px; border-radius: 20px; font-size: .8rem; color: var(--text); }
.tag-chip:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.share-sticky { display: flex; align-items: center; gap: 6px; padding: 10px 0; border-top: 1px solid var(--border); margin-top: 20px; }

/* ---- FAQ / key takeaways ---- */
.key-takeaways {
  background: var(--bg-light); border-radius: 10px; padding: 18px; margin: 20px 0; border: 1px solid var(--border);
}
.key-takeaways h3 { font-size: 1.1rem; font-weight: 800; color: var(--brand); margin-bottom: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.faq-q { padding: 12px 16px; font-weight: 700; cursor: pointer; background: var(--bg-alt); }
.faq-a { padding: 12px 16px; display: none; }

/* ---- Comments ---- */
.comment-box { margin-top: 30px; }
.comment-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 12px; min-height: 100px; background: var(--card); color: var(--text); }
.comment-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-author { font-weight: 700; }
.comment-time { font-size: .75rem; color: var(--muted); }
.comment-actions button { background: none; border: none; font-size: .8rem; color: var(--muted); margin-right: 12px; }
.comment-actions button:hover { color: var(--brand); }
.comment-replies { margin-left: 50px; }

/* ---- Category / listing ---- */
.listing-header { padding: 16px 0; }
.listing-header h1 { font-size: 1.6rem; font-weight: 800; font-family: 'Mukta', sans-serif; color: var(--brand); position: relative; display: inline-block; }
.listing-header p { color: var(--muted); }
.load-more-wrap { text-align: center; margin: 30px 0; }

/* ---- Pagination ---- */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 30px 0; }
.page-link {
  display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-weight: 600;
}
.page-link.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---- Footer ---- */
.site-footer { background: var(--dark); color: #ccc; margin-top: 40px; padding-top: 40px; }
.footer-title { color: #fff; font-weight: 800; }
.footer-desc { font-size: .9rem; }
.footer-social a {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; align-items: center; justify-content: center; margin-right: 8px;
}
.footer-social a:hover { background: var(--brand); }
.footer-head { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #aaa; font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.newsletter-form .form-control { background: rgba(255,255,255,.1); border: 1px solid #555; color: #fff; }
.footer-bottom { border-top: 1px solid #333; margin-top: 30px; padding: 16px; font-size: .8rem; color: #888; }

/* ---- Mobile bottom nav ---- */
.mobile-bottom-nav {
  display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  background: var(--card); border-top: 1px solid var(--border); padding: 6px 0; justify-content: space-around;
}
.mobile-bottom-nav .mb-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; color: var(--muted); font-size: .62rem; flex: 1; padding: 4px;
}
.mobile-bottom-nav .mb-item i { font-size: 1.2rem; }
.mobile-bottom-nav .mb-item.active, .mobile-bottom-nav .mb-item:active { color: var(--brand); }

/* Mobile slide menu */
.mobile-menu-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 300;
}
.mobile-menu-overlay.active { display: block; }
.mobile-menu {
  position: fixed; top: 0; left: -300px; width: 290px; height: 100%;
  background: var(--card); z-index: 301; transition: left .3s; overflow-y: auto;
}
.mobile-menu.open { left: 0; }
.mm-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--border); }
.mm-brand { font-weight: 800; color: var(--brand); }
.mm-close { background: none; border: none; font-size: 1.4rem; color: var(--text); }
.mm-list { list-style: none; margin: 0; padding: 0; }
.mm-list > li { border-bottom: 1px solid var(--border); }
.mm-list a { display: flex; justify-content: space-between; padding: 14px 16px; color: var(--text); font-weight: 600; }
.mm-list a:hover { color: var(--brand); background: var(--bg-alt); }
.mm-children { list-style: none; padding: 0; background: var(--bg-alt); }
.mm-children a { padding-left: 30px !important; font-weight: 400; }

/* ---- Cookie consent ---- */
.cookie-consent {
  display: none; position: fixed; bottom: 70px; left: 50%; transform: translateX(-50%);
  width: 94%; max-width: 700px; background: var(--dark); color: #fff; border-radius: 10px;
  z-index: 400; padding: 14px 18px; box-shadow: 0 6px 30px rgba(0,0,0,.4);
}
@media (min-width:768px){ .cookie-consent { bottom: 20px; left: 20px; transform: none; } }
.cookie-consent.show { display: block; }
.cookie-content { display: flex; flex-direction: column; gap: 12px; align-items: center; }
@media (min-width:768px){ .cookie-content { flex-direction: row; justify-content: space-between; } }
.cookie-text p { margin: 4px 0 0; font-size: .85rem; color: #ccc; }
.cookie-text a { color: #ffc107; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-consent .btn-outline { color: #fff; border-color: #666; }

/* ---- Tools ---- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.tool-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 18px 12px; text-align: center;
  transition: transform .2s;
}
.tool-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.tool-card i { font-size: 1.8rem; color: var(--brand); margin-bottom: 10px; }
.tool-card span { font-weight: 600; font-size: .85rem; color: var(--text); }
.calc-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
.calc-card label { font-weight: 600; margin-bottom: 4px; color: var(--text); }
.calc-result { margin-top: 16px; background: var(--bg-light); padding: 16px; border-radius: 8px; font-size: 1.2rem; font-weight: 700; color: var(--brand); }

/* ---- 404 ---- */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404 .code { font-size: 8rem; font-weight: 800; color: var(--brand); line-height: 1; font-family: 'Mukta',sans-serif; }
.error-404 h1 { font-size: 1.6rem; margin: 10px 0; }

/* ---- Utilities ---- */
.text-brand { color: var(--brand); }
.mb-2p { margin-bottom: 12px; }
.rounded-img { border-radius: 10px; }

/* Video gallery */
.video-card .play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.3);
}
.play-overlay i { font-size: 3rem; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.duration-badge { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.8); color:#fff; font-size:.75rem; padding: 2px 8px; border-radius: 4px; }

/* ============================================================
   CORPORATE REDESIGN (home + right sidebar widgets)
   ============================================================ */
:root {
  --corp-ink: #101828;
  --corp-soft: #475467;
  --corp-line: #eaecf0;
  --corp-panel: #ffffff;
  --corp-panel-2: #f9fafb;
}
[data-theme="dark"] {
  --corp-ink: #f2f4f7;
  --corp-soft: #98a2b3;
  --corp-line: #2a2f36;
  --corp-panel: #1a1a1a;
  --corp-panel-2: #202020;
}

.corp-section { margin: 34px 0; }
.corp-block { margin-bottom: 34px; }
.corp-block:last-child { margin-bottom: 0; }

/* Corporate section header */
.section-header.corp {
  border-bottom: 1px solid var(--corp-line);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.section-header.corp::after {
  content: '';
  position: absolute; left: 0; bottom: -1px; height: 3px; width: 64px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 3px;
}
.section-header.corp .section-title {
  font-size: 1.25rem; letter-spacing: .2px; color: var(--corp-ink);
}
.section-header.corp .section-title::before { display: none; }
.section-header.corp .section-title i { color: var(--brand); font-size: 1.05rem; }
.section-header.corp .section-link { text-transform: uppercase; letter-spacing: .6px; font-size: .72rem; }

/* Corporate cards */
.corp-card { box-shadow: 0 1px 2px rgba(16,24,40,.05); border-color: var(--corp-line); border-radius: 12px; }
.corp-card:hover { box-shadow: 0 12px 28px rgba(16,24,40,.12); border-color: transparent; }
.corp-mini .mini-item { padding: 12px 0; }

/* ---- Hero carousel ---- */
.corp-hero { padding: 22px 0 6px; }
.hero-carousel { border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(16,24,40,.12); }
.hero-carousel .hero-main { height: 480px; border-radius: 0; }
.hero-carousel .hero-main img { transition: transform 6s ease; }
.hero-carousel .carousel-item.active .hero-main img { transform: scale(1.05); }
.hero-carousel .carousel-indicators { margin-bottom: 14px; }
.hero-carousel .carousel-indicators [data-bs-target] {
  width: 26px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.5); border: none;
}
.hero-carousel .carousel-indicators .active { background: #fff; width: 40px; }
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next { width: 8%; opacity: 0; transition: opacity .25s; }
.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next { opacity: .9; }
.hero-side-title { letter-spacing: .3px; }
.hero-side-title i { font-size: .9rem; }

/* ---- News carousel (multi item) ---- */
.news-carousel { position: relative; padding: 0 4px; }
@media (min-width: 992px) {
  .news-carousel .carousel-control-prev,
  .news-carousel .carousel-control-next {
    width: 46px; height: 46px; top: 50%; transform: translateY(-50%);
    background: var(--corp-panel); border: 1px solid var(--corp-line); border-radius: 50%;
    opacity: 1; box-shadow: 0 4px 12px rgba(16,24,40,.12);
  }
  .news-carousel .carousel-control-prev { left: -22px; }
  .news-carousel .carousel-control-next { right: -22px; }
  .news-carousel .carousel-control-prev-icon,
  .news-carousel .carousel-control-next-icon { width: 16px; height: 16px; }
  .news-carousel .carousel-control-prev-icon { filter: invert(1) grayscale(1); }
  .news-carousel .carousel-control-next-icon { filter: invert(1) grayscale(1); }
  [data-theme="dark"] .news-carousel .carousel-control-prev-icon,
  [data-theme="dark"] .news-carousel .carousel-control-next-icon { filter: none; }
}
.news-carousel .carousel-indicators { position: static; margin: 16px 0 0; }
.news-carousel .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%; background: var(--corp-line); border: none; opacity: 1;
}
.news-carousel .carousel-indicators .active { background: var(--brand); }

/* ---- Right sidebar widget cards ---- */
.corp-sidebar { position: relative; }
.widget-card {
  background: var(--corp-panel); border: 1px solid var(--corp-line); border-radius: 14px;
  padding: 0; overflow: hidden; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.widget-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 16px; border-bottom: 1px solid var(--corp-line); background: var(--corp-panel-2);
}
.widget-title {
  font-size: .98rem; font-weight: 800; margin: 0; color: var(--corp-ink);
  display: flex; align-items: center; gap: 9px; letter-spacing: .2px;
}
.widget-title i { color: var(--brand); font-size: .95rem; }
.widget-body { padding: 14px 16px; }
.widget-loading { display: flex; align-items: center; gap: 8px; color: var(--corp-soft); font-size: .85rem; padding: 6px 0; }
.widget-foot-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-top: 1px solid var(--corp-line); font-size: .78rem;
  font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .5px; background: var(--corp-panel-2);
}
.widget-foot-link:hover { background: var(--brand); color: #fff; }

/* Live badges */
.live-badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: .62rem; font-weight: 800;
  letter-spacing: .6px; text-transform: uppercase; color: #fff; background: var(--brand);
  padding: 3px 8px; border-radius: 20px;
}
.live-badge-green { background: #12805c; }
.live-badge-purple { background: #6941c6; }
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.1s infinite;
}

/* ---- Ads carousel ---- */
.widget-ads .ad-label { font-size: .6rem; color: var(--corp-soft); letter-spacing: 1px; text-transform: uppercase; }
.widget-ads-carousel .carousel-inner { border-radius: 0; }
.ad-slide {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 180px; padding: 10px; background: var(--corp-panel-2);
}
.ad-slide a { display: block; width: 100%; }
.ad-slide img { max-width: 100%; max-height: 240px; object-fit: contain; border-radius: 8px; }
.ad-slide-empty {
  flex-direction: column; gap: 6px; color: var(--corp-soft); border: 1.5px dashed var(--corp-line);
  border-radius: 10px; margin: 12px; background: transparent;
}
.ad-slide-empty i { font-size: 1.9rem; color: var(--brand); opacity: .7; }
.ad-slide-empty span { font-weight: 700; color: var(--corp-ink); font-size: .9rem; }
.ad-slide-empty small { font-size: .72rem; }
.widget-ads-carousel .carousel-indicators { margin-bottom: 6px; }
.widget-ads-carousel .carousel-indicators [data-bs-target] {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(192,0,0,.4); border: none;
}
.widget-ads-carousel .carousel-indicators .active { background: var(--brand); }
.widget-ads-carousel .carousel-control-prev-icon,
.widget-ads-carousel .carousel-control-next-icon { width: 18px; height: 18px; }

/* ---- Weather widget ---- */
.weather-now { display: flex; align-items: center; gap: 14px; }
.wn-icon {
  width: 58px; height: 58px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff;
  background: linear-gradient(135deg, #f79009, var(--brand));
}
.wn-temp { font-size: 2.1rem; font-weight: 800; line-height: 1; color: var(--corp-ink); font-family: 'Mukta', sans-serif; }
.wn-temp span { font-size: 1.1rem; vertical-align: super; }
.wn-city { font-weight: 700; color: var(--corp-ink); font-size: .95rem; }
.wn-desc { display: block; color: var(--corp-soft); font-size: .8rem; font-weight: 600; }
.weather-meta {
  display: flex; gap: 6px; margin: 14px 0; padding: 10px 0; border-top: 1px dashed var(--corp-line); border-bottom: 1px dashed var(--corp-line);
}
.weather-meta > div { flex: 1; text-align: center; font-size: .72rem; color: var(--corp-soft); display: flex; flex-direction: column; gap: 3px; }
.weather-meta i { color: var(--brand); font-size: .95rem; }
.weather-days { display: flex; gap: 6px; }
.wd-item {
  flex: 1; text-align: center; padding: 9px 4px; border-radius: 10px; background: var(--corp-panel-2);
  border: 1px solid var(--corp-line);
}
.wd-item .wd-day { font-size: .68rem; color: var(--corp-soft); font-weight: 700; }
.wd-item i { color: #f79009; margin: 4px 0; font-size: .95rem; }
.wd-item .wd-max { font-weight: 800; font-size: .85rem; color: var(--corp-ink); }
.wd-item .wd-min { font-size: .72rem; color: var(--corp-soft); }

/* ---- Stocks widget ---- */
.stock-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 0; border-bottom: 1px dashed var(--corp-line);
}
.stock-row:last-child { border-bottom: none; }
.stock-name { font-weight: 700; font-size: .85rem; color: var(--corp-ink); }
.stock-sym { display: block; font-size: .66rem; color: var(--corp-soft); font-weight: 600; letter-spacing: .3px; }
.stock-val { text-align: right; }
.stock-price { font-weight: 800; font-size: .9rem; color: var(--corp-ink); font-variant-numeric: tabular-nums; }
.stock-chg { font-size: .72rem; font-weight: 700; }
.stock-chg.up { color: #12805c; }
.stock-chg.down { color: #d92d20; }
.widget-updated { font-size: .68rem; color: var(--corp-soft); text-align: right; margin-top: 8px; }

/* ---- Metals widget ---- */
.metal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metal-box {
  border-radius: 12px; padding: 12px; border: 1px solid var(--corp-line);
  background: var(--corp-panel-2); position: relative; overflow: hidden;
}
.metal-box.gold { border-top: 3px solid #f79009; }
.metal-box.silver { border-top: 3px solid #98a2b3; }
.mb-label { font-size: .72rem; font-weight: 700; color: var(--corp-soft); display: flex; align-items: center; gap: 6px; }
.mb-label i { color: #f79009; }
.metal-box.silver .mb-label i { color: #98a2b3; }
.mb-price { font-size: 1.05rem; font-weight: 800; color: var(--corp-ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.mb-sub { font-size: .7rem; color: var(--corp-soft); margin-top: 2px; }

/* ---- Cricket widget ---- */
.cricket-item { padding: 10px 0; border-bottom: 1px dashed var(--corp-line); }
.cricket-item:last-child { border-bottom: none; }
.ci-title { font-weight: 700; font-size: .86rem; color: var(--corp-ink); margin: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.ci-live-tag { font-size: .58rem; font-weight: 800; color: #fff; background: var(--brand); padding: 1px 6px; border-radius: 20px; letter-spacing: .5px; }
.ci-scores { display: flex; flex-wrap: wrap; gap: 6px; }
.ci-score {
  font-size: .78rem; font-weight: 800; color: var(--corp-ink); background: var(--corp-panel-2);
  border: 1px solid var(--corp-line); border-radius: 7px; padding: 3px 9px; font-variant-numeric: tabular-nums;
}
.ci-status { font-size: .74rem; color: var(--corp-soft); margin-top: 4px; }
.ci-empty { text-align: center; color: var(--corp-soft); font-size: .82rem; padding: 10px 0; }

/* ---- Horoscope widget ---- */
.horo-sign { font-weight: 800; color: var(--brand); font-size: .95rem; display: flex; align-items: center; gap: 7px; }
.horo-date { font-size: .7rem; color: var(--corp-soft); margin-left: auto; }
.horo-text {
  font-size: .85rem; color: var(--corp-ink); line-height: 1.7; margin: 8px 0 0;
  max-height: 190px; overflow-y: auto; padding-right: 4px;
  border-left: 3px solid var(--brand); padding-left: 12px;
}

/* Corporate responsive tweaks */
@media (max-width: 991px) {
  .hero-carousel .hero-main { height: 360px; }
  .widget-ads-carousel .ad-slide { min-height: 130px; }
}
@media (max-width: 575px) {
  .hero-carousel .hero-main { height: 300px; }
  .hero-title { font-size: 1.25rem; }
  .corp-block { margin-bottom: 26px; }
  .metal-grid { grid-template-columns: 1fr; }
}
