/*
Theme Name: BanksNews Pro Complete
Theme URI: https://banksnews.pk
Author: AI Collaborator
Description: Fully dynamic, Ads-friendly theme for Banksnews.pk
Version: 2.0
*/
:root { --primary-green: #058547; --dark-green: #03522c; --accent-yellow: #ffc400; --btn-blue: #233876; --bg-slate: #f1f5f9; --text-dark: #0f172a; --text-gray: #64748b; --border-ui: #e2e8f0; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, sans-serif; background-color: var(--bg-slate); color: var(--text-dark); line-height: 1.6; }
.site-wrap { max-width: 1140px; margin: 0 auto; padding: 0 12px; }
.bn-header { background-color: var(--primary-green); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; border-radius: 8px 8px 0 0; margin-top: 15px; }
.bn-brand { color: #fff; font-size: 28px; font-weight: 800; text-decoration: none; }
.bn-top-nav ul { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; }
.bn-top-nav a { background: var(--btn-blue); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; padding: 6px 14px; border-radius: 4px; display: inline-block; }
.bn-categories-bar { background-color: var(--primary-green); padding: 0 16px 16px 16px; }
.bn-cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; list-style: none; padding: 0; margin: 0; }
.bn-cat-btn, .bn-cat-grid li a { display: block; background-color: var(--accent-yellow); color: #78350f; text-align: center; padding: 9px 4px; font-size: 13px; font-weight: 700; text-decoration: none; border-radius: 4px; }
.bn-hero-zone { background: #fff; border: 1px solid var(--border-ui); margin: 16px 0; border-radius: 6px; min-height: 180px; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
.bn-hero-zone img { max-width: 100%; height: auto; display: block; }
.bn-posts-container { background: #fff; border: 1px solid var(--border-ui); border-radius: 8px; padding: 24px; margin-bottom: 25px; }
.bn-section-heading { color: var(--dark-green); font-size: 22px; font-weight: 800; margin-bottom: 20px; border-bottom: 2px solid var(--border-ui); padding-bottom: 8px; }
.bn-post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bn-card { background: #fff; border: 1px solid var(--border-ui); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.bn-card-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; background-color: #e2e8f0; }
.bn-card-body { padding: 12px; display: flex; flex-direction: column; flex-grow: 1; }
.bn-card-tag { font-size: 11px; text-transform: uppercase; color: var(--primary-green); font-weight: 700; margin-bottom: 6px; }
.bn-card-title { font-size: 14px; font-weight: 700; color: var(--text-dark); line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bn-card-meta { font-size: 12px; color: var(--text-gray); margin-top: auto; }
.bn-ad-card { background: #f8fafc; border: 1px dashed #cbd5e1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-size: 12px; color: var(--text-gray); border-radius: 6px; }
.bn-article-view { background: #fff; border: 1px solid var(--border-ui); border-radius: 8px; padding: 30px; margin: 16px 0 25px 0; }
.bn-article-title { font-size: 32px; font-weight: 800; color: var(--text-dark); margin-bottom: 12px; }
.bn-article-meta { color: var(--text-gray); font-size: 14px; margin-bottom: 20px; }
.bn-article-img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 8px; margin-bottom: 24px; }
.bn-article-content { font-size: 16px; line-height: 1.8; color: #334155; }
.bn-footer { background-color: #e2e8f0; padding: 20px; text-align: center; font-size: 13px; color: var(--text-gray); border-radius: 0 0 8px 8px; margin-bottom: 25px; }
@media (max-width: 992px) { .bn-cat-grid { grid-template-columns: repeat(3, 1fr); } .bn-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bn-header { flex-direction: column; align-items: flex-start; } .bn-cat-grid { grid-template-columns: repeat(2, 1fr); } .bn-post-grid { grid-template-columns: 1fr; } }
/* Flashing / Prominent Glow Button */
.bn-highlight-btn {
  background: #dc2626 !important; /* Urgent Red Color */
  color: #ffffff !important;
  font-weight: 800 !important;
  border: 2px solid #ffffff !important;
  animation: bnFlashGlow 1.2s infinite alternate ease-in-out !important;
}

@keyframes bnFlashGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(220, 38, 38, 0.7);
  }
  100% {
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(220, 38, 38, 0.9);
  }
}
/* Dynamic Menu Buttons Styling & Highlight Fix */
.bn-cat-grid {
  list-style: none !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  padding: 10px !important;
  margin: 0 !important;
}

.bn-cat-grid li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bn-cat-grid li a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  background-color: var(--accent-yellow, #ffc400) !important;
  color: #1e293b !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  padding: 10px 8px !important;
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

/* Glowing Flashing Button Effect on Specific Item */
.bn-cat-grid li.bn-highlight-btn a {
  background: #dc2626 !important; /* Prominent Red */
  color: #ffffff !important;
  font-weight: 800 !important;
  animation: bnPulseGlow 1.2s infinite alternate ease-in-out !important;
}

@keyframes bnPulseGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(220, 38, 38, 0.6);
  }
  100% {
    transform: scale(1.04);
    box-shadow: 0 0 14px rgba(220, 38, 38, 0.95);
  }
}

@media (max-width: 600px) {
  .bn-cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}