/* bfmtv.bar / Jannah-style layout – match original structure and styling */

* { box-sizing: border-box; }

/* ----- Login-only page (no header, no footer, no sidebar) ----- */
body.login-only {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.login-only-wrap {
  width: 100%;
  max-width: 360px;
  padding: 1rem;
}

.login-only-wrap .login-box {
  padding: 1.5rem;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
  font-size: 15px;
}

/* ----- Header (Jannah-style: light bar + logo area) ----- */
.bfmtv-header {
  background: #fff;
  color: #222;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 0 1rem 0;
}

.bfmtv-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.bfmtv-user {
  position: absolute;
  top: 1rem;
  right: 20px;
  font-size: 0.85rem;
}

.bfmtv-user a {
  color: #666;
  text-decoration: none;
  margin-left: 0.75rem;
}

.bfmtv-user a:hover,
.bfmtv-user .welcome { color: #222; }

.bfmtv-brand-wrap {
  text-align: center;
  padding: 1rem 0 0.5rem 0;
}

.bfmtv-brand-img {
  display: block;
  margin: 0 auto 0.25rem auto;
  max-width: 100%;
  height: auto;
  max-height: 80px;
}

.bfmtv-brand {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.bfmtv-brand a {
  color: #222;
  text-decoration: none;
}

.bfmtv-brand a:hover { color: #555; }

.bfmtv-tagline {
  font-size: 0.9rem;
  color: #666;
  margin: 0.25rem 0 0 0;
  font-weight: 400;
}

.bfmtv-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.25rem;
  padding: 0.75rem 0 0 0;
  margin-top: 0.5rem;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
}

.bfmtv-nav a {
  color: #444;
  text-decoration: none;
}

.bfmtv-nav a:hover { color: #000; }

/* ----- Main: two columns (main + sidebar) like original ----- */
.bfmtv-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 20px 2rem;
}

.bfmtv-content-wrap {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.bfmtv-main-col {
  flex: 1;
  min-width: 0;
}

.bfmtv-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 1.25rem;
  font-size: 0.9rem;
}

.bfmtv-sidebar h3,
.bfmtv-sidebar h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #222;
  color: #222;
}

.bfmtv-sidebar-widget {
  margin-bottom: 1.5rem;
}

.bfmtv-sidebar-widget:last-child { margin-bottom: 0; }

.bfmtv-sidebar p { margin: 0 0 0.5rem 0; color: #555; }

.bfmtv-sidebar a { color: #444; text-decoration: none; }

.bfmtv-sidebar a:hover { color: #000; text-decoration: underline; }

@media (max-width: 900px) {
  .bfmtv-content-wrap { flex-direction: column; }
  .bfmtv-sidebar { width: 100%; }
}

/* ----- Section titles (linked in original) ----- */
.bfmtv-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem 0;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #222;
  color: #222;
}

.bfmtv-section-title:first-child { margin-top: 0; }

.bfmtv-section-title a { color: inherit; text-decoration: none; }

.bfmtv-section-title a:hover { color: #555; }

/* ----- Post list: thumbnail left + content (like original) ----- */
.bfmtv-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bfmtv-post-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e8e8e8;
  align-items: flex-start;
}

.bfmtv-post-item:last-child { border-bottom: none; }

.bfmtv-post-item a { color: #222; text-decoration: none; }

.bfmtv-post-item a:hover { color: #555; }

.bfmtv-post-thumb-wrap {
  flex-shrink: 0;
  display: block;
  line-height: 0;
}

.bfmtv-post-thumb {
  width: 110px;
  height: 75px;
  object-fit: cover;
  display: block;
  background: #e8e8e8;
}

.bfmtv-post-thumb-placeholder {
  display: block;
  width: 110px;
  height: 75px;
  background: #e0e0e0;
}

.bfmtv-post-item.featured .bfmtv-post-thumb,
.bfmtv-post-item.featured .bfmtv-post-thumb-placeholder {
  width: 310px;
  height: 165px;
}

.bfmtv-post-body { min-width: 0; flex: 1; }

.bfmtv-post-item h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.35rem 0;
  line-height: 1.35;
}

.bfmtv-post-item.featured h2 { font-size: 1.35rem; }

.bfmtv-post-meta {
  margin: 0 0 0.35rem 0;
  font-size: 0.85rem;
  color: #666;
}

.bfmtv-post-excerpt {
  margin: 0 0 0.35rem 0;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.45;
}

.bfmtv-read-more {
  font-size: 0.85rem;
  font-weight: 600;
}

.bfmtv-read-more a:hover { text-decoration: underline; }

/* Emissions (empty list) */
.bfmtv-emissions-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

/* ----- Search ----- */
.bfmtv-search {
  margin-bottom: 1rem;
}

.bfmtv-search form { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

.bfmtv-search input[type="search"] {
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  min-width: 200px;
}

.bfmtv-search button {
  padding: 0.4rem 0.8rem;
  background: #222;
  color: #fff;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
}

.bfmtv-search button:hover { background: #444; }

.bfmtv-search .text-muted { font-size: 0.85rem; color: #666; margin-top: 0.25rem; }

/* ----- Pagination ----- */
.bfmtv-pagination {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.bfmtv-pagination a,
.bfmtv-pagination span {
  margin: 0 0.25rem;
  color: #222;
  text-decoration: none;
}

.bfmtv-pagination a:hover { text-decoration: underline; }

.bfmtv-pagination .current { font-weight: 700; }

.bfmtv-pagination .d-block { display: block; margin-top: 0.5rem; color: #666; }

/* ----- Alerts ----- */
.bfmtv-alert {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: #fff;
  border-left: 4px solid #222;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #222;
}

/* ----- Footer ----- */
.bfmtv-footer {
  background: #fff;
  color: #666;
  padding: 1.5rem 20px;
  margin-top: 2rem;
  font-size: 0.85rem;
  line-height: 1.6;
  border-top: 1px solid #e0e0e0;
}

.bfmtv-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.bfmtv-footer a { color: #444; text-decoration: none; }

.bfmtv-footer a:hover { color: #000; }

.bfmtv-footer-credits { margin-bottom: 0.75rem; }

.bfmtv-footer-mentions {
  max-width: 700px;
  margin: 0.75rem auto 0;
  font-size: 0.8rem;
  color: #777;
  line-height: 1.5;
}

.bfmtv-footer-copyright { margin-top: 1rem; }

/* ----- Article (blog detail) ----- */
.bfmtv-article .blog-post-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.bfmtv-article .blog-post-meta { color: #666; font-size: 0.9rem; margin-bottom: 1.5rem; }
.bfmtv-article .blog-html-content { font-size: 1rem; line-height: 1.7; }
.bfmtv-article .back-link { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #e0e0e0; }
.bfmtv-article .back-link a { color: #222; font-weight: 600; }
