:root {
  --primary: #0d6efd;
  --muted: #6c757d;
  --bg: #f6f6f6;
  --card: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: #222; 
  padding-top: 70px;
  font-family: 'Roboto', sans-serif;
}
.dislike-btn{
  border-radius: 15px;
  border-width: 0px;
}
.like-btn{
  border-radius: 15px;
  border-width: 0px;
}
.share-btn{
  border-radius: 15px;
  border-width: 0px;
    background: var(--bg);
  font-size: small;
}
.fb-comment-btn {
border-radius: 15px;
border-width: 0px;
}
.fb-sub-scriber {
border-radius: 15px;
border-width: 0px;
color: #eee;
background: #8f0202
}
.container {
  max-width: 980px;
  margin: 0 auto; 
  background: var(--bg);
  padding: 18px;
}
.fb-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #111;
  color: #fff;
  z-index: 1600;
  display: flex;
  align-items: center;
}
.fb-topbar .fb-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 12px;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  margin-left: 8px;
}
.desktop-only {
  display: none;
}
.mobile-only {
  display: inline-block;
}
.main-content {
  padding-top: 86px;
}
.article-full {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin: 20px auto;
}
.featured-img {
  width: 100%;
  height: 380px;
  object-fit: contain;
  border-radius: 8px;
  margin: 12px 0;
}
 
.article-actions{display:flex;gap:10px;align-items:center;margin-top:8px}
.article-actions button{border:1px solid #e6e6e6;background:#fff;padding:8px 10px;border-radius:8px;cursor:pointer}
.content {
  line-height: 1.6;
  color: #333;
}
.fb-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.fb-action {
  border-radius: 15px;
  border-width: 0px; 
/*
  background: #0f1724;
  color: #fff;   
  border: 1px solid #eee;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  */
  gap: 8px;
}
.fb-action:hover {
  background: #f7f9fc;
  color: #0f1724;
  transform: translateY(-2px);
}
.post-left-btn {
  position: fixed;
  left: 16px;
  bottom: 16px;
  background: #0d6efd;
  color: #fff;
  padding: 10px 14px;
  border-radius: 28px;
  text-decoration: none;
  z-index: 1700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.subscribe-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #0d6efd;
  color: #fff;
  border: none;
  padding: 12px 14px;
  border-radius: 28px;
  cursor: pointer;
  z-index: 1700;
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.2);
}
.modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1800;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal .modal-dialog {
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
}
.modal .modal-content {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal .modal-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}
.modal .modal-body {
  padding: 12px 16px;
  overflow: auto;
}
.modal .modal-footer {
  padding: 12px 16px;
  border-top: 1px solid #eee;
}
.loader {
  padding: 12px;
  text-align: center;
  color: var(--muted);
}
.floating-search {
  display: none;
  background: #fff;
  margin-top: 60px;
  padding: 0px;
  border-bottom: 1px solid #eee;
  position: fixed; 
  left: 0;
  right: 0;
  z-index: 1550;
}
.floating-search .container {
  max-width: 980px;
  margin: 0 auto;
}
.search-results {
  margin-top: 8px;
}
 
@media (min-width: 768px) {
  .desktop-only {
    display: block;
  }
  .mobile-only {
    display: none;
  }
}
.top-niches{height:44px;background:#fff;border-bottom:1px solid #f1f1f1;display:flex;align-items:center;overflow:hidden;padding:6px 12px}
.niche-scroll{display:flex;gap:8px;overflow:auto;padding-bottom:4px}
.niche-pill{white-space:nowrap;padding:6px 10px;border-radius:20px;background:#f3f3f3;color:#333;text-decoration:none;font-size:14px}
.container.main-content{padding-top:120px;max-width:1100px;margin:0 auto;padding-left:12px;padding-right:12px}
.row.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.card{background:#fff;border:1px solid #eee;border-radius:8px;overflow:hidden}
/*.card img{display:block;width:100%;height:160px;object-fit:cover}*/
.card-body{padding:12px}
 
.article-content img {
  max-height: 350px;
  width: 100%;
  object-fit: contain;
  display: block;
  margin: 10px 0;
}
 

.post-article-btn{position:fixed;left:16px;bottom:80px;background:var(--primary);color:#fff;padding:10px 14px;border-radius:999px;box-shadow:0 6px 18px rgba(13,110,253,0.18);z-index:1060;transition:transform .18s ease,opacity .18s ease}
.fb-bottom-nav{position:fixed;left:12px;right:12px;bottom:12px;height:58px;background:rgba(255,255,255,0.9);backdrop-filter:blur(6px);border-radius:12px;display:flex;justify-content:space-around;align-items:center;box-shadow:0 6px 20px rgba(0,0,0,0.08);z-index:1060;transition:transform .25s ease,opacity .25s ease}
.bn-item{display:flex;flex-direction:column;align-items:center;font-size:12px;text-decoration:none;color:#333}
.bn-item .bn-icon{font-size:18px}
.fb-bottom-nav.hidden{transform:translateY(120%);opacity:0}
.slide-menu{position:fixed;left:0;top:0;bottom:0;width:300px;background:#fff;transform:translateX(-110%);transition:transform .25s ease;z-index:1070;box-shadow:8px 0 30px rgba(0,0,0,0.12)}
.slide-menu.open{transform:translateX(0)}
.slide-overlay{position:fixed;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,0.35);opacity:0;transition:opacity .2s ease;z-index:1065;display:none}
.slide-overlay.show{display:block;opacity:1}
@media(min-width:769px){ .fb-bottom-nav{display:none} .top-niches{display:block} #searchBarContainer{top:56px} .container.main-content{padding-top:160px} } 
@media(max-width:768px){ .top-niches{display:none} .container.main-content{padding-top:76px} }

.container{max-width:980px;margin:0 auto;padding:18px}
.fb-topbar{position:fixed;top:0;left:0;right:0;height:60px;background:#111;color:#fff;z-index:1200;display:flex;align-items:center}
.fb-topbar .fb-topbar-inner{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:980px;margin:0 auto;padding:0 12px}
.brand{color:#fff;text-decoration:none;font-weight:700;margin-left:8px}
.desktop-only{display:none}
.mobile-only{display:inline-block}
.search-wrap input{padding:8px 12px;border-radius:8px;border:1px solid #ddd;width:420px;max-width:60vw}
.main-content{padding-top:86px}
.article-full{background:var(--card);border-radius:12px;padding:20px;box-shadow:0 4px 20px rgba(0,0,0,0.06);margin:20px auto}
 
.content{line-height:1.6;color:#333}
 
.post-article-btn{position:fixed;left:16px;bottom:16px;background:var(--primary);color:#fff;padding:10px 14px;border-radius:28px;text-decoration:none;z-index:1300;box-shadow:0 10px 24px rgba(13,110,253,0.18)}
.modal{display:none;position:fixed;left:0;top:0;right:0;bottom:0;z-index:1300;background:rgba(0,0,0,0.45);align-items:center;justify-content:center;padding:20px}
.modal .modal-dialog{max-width:820px;width:100%;max-height:90vh;overflow:hidden}
.modal .modal-content{background:#fff;border-radius:10px;overflow:hidden;display:flex;flex-direction:column}
.modal .modal-header{display:flex;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #eee}
.modal .modal-body{padding:12px 16px;overflow:auto}
.modal .modal-footer{padding:12px 16px;border-top:1px solid #eee}
.loader{padding:12px;text-align:center;color:var(--muted)}
.niche-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;margin-top:14px}
.niche-card{background:#fff;border-radius:10px;box-shadow:0 6px 18px rgba(0,0,0,0.06);overflow:hidden;display:flex;flex-direction:column}
.niche-card img{width:100%;height:140px;object-fit:cover}
.niche-body{padding:12px;display:flex;justify-content:space-between;align-items:center}
.masonry-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;margin-top:18px}
.masonry-card{background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 8px 22px rgba(0,0,0,0.06)}
.masonry-card img{width:100%;height:160px;object-fit:cover}

.masonry-card h4 a,
.masonry-card h1 a { 
  display: -webkit-box;
  -webkit-line-clamp: 3;       /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4em;          /* Adjust line spacing */
  max-height: calc(1.4em * 3); /* Keep consistent height for 3 lines */
  color: #222;                 /* Optional: text color */
  text-decoration: none;
}

.masonry-card h4 a:hover {
  color: #0078ff;              /* Optional hover color */
}


 
.btn{background:var(--primary);color:#fff;padding:8px 10px;border-radius:8px;text-decoration:none}
.btn-sm{background:#eee;color:#333;padding:6px 8px;border-radius:6px;text-decoration:none;font-size:13px}
.loadmore-wrap{text-align:center;margin:16px 0}
 

.nav-link{
color: #eee;
font-weight: bold;
text-align: right;
text-decoration: none; 
}
.btn-lang{ 
color: #eee;
background: #111;
 border-radius: 15px;
 padding: 3px 5px 3px 5px;
}
.left-btn-desktop {
  position: fixed;
  left: 16px;
  bottom: 16px;
  background: #0d6efd;
  color: #fff;
  padding: 10px 14px;
  border-radius: 28px;
  text-decoration: none;
  z-index: 1700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
/* developer CSS - non-minified */
@media (max-width:991px){ 
  .desktop-links{display:none;} 
.left-btn-desktop{display:none;} 
}
/* footer */
footer{background:#fff;padding:20px;border-top:1px solid #eee;margin-top:40px}
.footer-links{display:flex;gap:12px;flex-wrap:wrap}

/* === HOMEPAGE POLISH === */
.hero-banner {
  background: linear-gradient(135deg, #0d6efd 0%, #3b82f6 100%);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  border-radius: 10px;
  margin-top: 80px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

.hero-banner h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.hero-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Card polish */
.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.card-body h2, .card-body h3, .card-body h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #111;
}
.fade-item {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}
.card-body .meta {
  color: #888;
  font-size: 0.9rem;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.navbar-dark .navbar-nav .nav-link {
  color: #fff;
}
.navbar-dark .navbar-nav .nav-link:hover {
  color: #0d6efd;
}
footer a:hover {
  color: #0d6efd !important;
}
/* Smooth transition for mobile hide/show */
.navbar {
  transition: top 0.4s ease-in-out;
}

/* Footer update */
footer {
  background: #0f1724;
  color: #ddd;
  text-align: center;
  padding: 25px;
  margin-top: 40px;
}

footer .footer-links a {
  color: #bbb;
  text-decoration: none;
  margin: 0 10px;
  font-size: 0.9rem;
}

footer .footer-links a:hover {
  color: #fff;
}

/* Search improvements */
.floating-search input {
  width: 100%;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.search-results .card {
  margin-bottom: 16px;
}
.stats {
  margin-left: 5px;
}
.pending-msg {
  padding: 5px;
  color: #fff;
  background-color: #8f0202;
  border-radius: 8px;
}

.lb-nav { opacity: 0.9; }
.lb-nav:hover { opacity: 1; }
.modal-backdrop.show { background-color: rgba(0,0,0,0.85); }
.swal-overlay {
  position: fixed; inset:0; display:flex; align-items:center; justify-content:center; z-index:2000;
  background: rgba(0,0,0,0.5);
}
.swal-box {
  background: #fff; padding:20px; border-radius:10px; width:320px; max-width:90%; box-shadow:0 8px 30px rgba(0,0,0,0.2); text-align:left;
}
.swal-box h4 { margin:0 0 8px 0; }
.swal-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:12px; }

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-banner {
    padding: 30px 16px;
  }
  .hero-banner h1 {
    font-size: 1.6rem;
  }
}

.engagement-text {
  font-size: 1rem;
  margin-top: 15px;
  color: #555;
  text-align: center;
}

/* ==== Custom Lightbox ==== */
.fb-lightbox {
  display: none;
  position: fixed;
  z-index: 3000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}

.fb-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.fb-lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.fb-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 32px;
  color: white;
  cursor: pointer;
}

.fb-nav-btn {
  background: none;
  border: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  cursor: pointer;
  transition: 0.3s;
}
.fb-nav-btn:hover {
  color: #0d6efd;
}

.fb-prev { left: -60px; }
.fb-next { right: -60px; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

