@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Roboto', Arial, sans-serif; font-size: 16px; line-height: 1.4; background: #f0f0f0; color: #222; }
a { text-decoration: none; color: #0000ee; }
a:hover { text-decoration: underline; color: #ff0000; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 15px; }

/* === HEADER === */
.site-header { background: #edbd79; position: relative; }
.header-inner { display: flex; align-items: center; padding: 20px 0; gap: 20px; }
.site-logo { flex-shrink: 0; }
.site-logo img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid #612625; }
.site-logo-fallback { width: 120px; height: 120px; border-radius: 50%; background: #612625; display: flex; align-items: center; justify-content: center; color: #edbd79; font-size: 44px; border: 3px solid #612625; }
.site-branding { text-align: center; flex: 1; }
.site-branding h1 { font-family: Arial, sans-serif; font-weight: 900; font-size: 42px; line-height: 1.1; text-transform: uppercase; color: #612625; margin: 0; }
.site-branding h1 a { color: #612625; text-decoration: none; }
.site-branding .tagline { font-family: Arial, sans-serif; font-weight: 900; font-size: 16px; text-transform: uppercase; color: #612625; margin-top: 4px; }

/* === NAVIGATION === */
.main-nav { background: #612625; }
.nav-bar-mobile { display: none; align-items: center; padding: 8px 0; }
.menu-toggle { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; padding: 6px 10px; border-radius: 4px; }
.menu-toggle:hover { background: rgba(255,255,255,0.15); }
.search-toggle { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; padding: 6px 10px; border-radius: 4px; margin-left: auto; }
.search-toggle:hover { background: rgba(255,255,255,0.15); }
.mobile-search-expand { display: none; padding: 0 15px 8px; background: #612625; }
.mobile-search-expand.show { display: flex; }
.mobile-search-input { flex: 1; padding: 8px 12px; border: none; border-radius: 4px 0 0 4px; font-size: 14px; outline: none; }
.mobile-search-btn { padding: 8px 14px; background: #edbd79; color: #612625; border: none; font-weight: 700; cursor: pointer; border-radius: 0 4px 4px 0; font-size: 14px; }
.nav-inner { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; }
.nav-inner a { color: #fff; padding: 10px 13px; font-weight: 700; font-size: 15px; display: block; text-decoration: none; border-right: 1px solid rgba(255,255,255,0.3); transition: background 0.2s; }
.nav-inner a:hover { background: rgba(255,255,255,0.15); text-decoration: none; }
.nav-inner .search-btn { margin-left: auto; }

/* === HOMEPAGE SEARCH BAR === */
.homepage-search-bar { background: #fff; border-bottom: 2px solid #612625; padding: 12px 0; }
.homepage-search-form { display: flex; max-width: 700px; margin: 0 auto; }
.homepage-search-input { flex: 1; padding: 12px 16px; font-size: 16px; border: 2px solid #612625; border-right: none; border-radius: 6px 0 0 6px; outline: none; }
.homepage-search-input:focus { border-color: #d3681f; }
.homepage-search-btn { padding: 12px 24px; background: #612625; color: #fff; border: 2px solid #612625; font-weight: 700; font-size: 16px; cursor: pointer; border-radius: 0 6px 6px 0; transition: background 0.2s; }
.homepage-search-btn:hover { background: #d3681f; border-color: #d3681f; }

/* === INFO / MARQUEE AREA === */
.info-section { background: #fff; padding: 10px 0; border-bottom: 3px solid #612625; }
.info-inner { max-width: 1100px; margin: 0 auto; padding: 0 10px; }
.info-heading { text-align: center; margin-bottom: 8px; }
.info-heading h2 { font-size: 18px; color: #000; font-weight: 700; font-family: Arial; }
.info-heading p { color: #ff0000; font-weight: 900; font-size: 14px; font-family: 'Arial Black', Arial; }

/* COLOR BOXES GRID */
.color-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin: 8px 0; }
.color-grid a { display: block; text-align: center; padding: 8px 4px; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; line-height: 1.3; border: 2px solid #fff; transition: transform 0.2s; }
.color-grid a:hover { transform: scale(1.03); color: #fff; text-decoration: none; }

/* MARQUEE */
.marquee-row { background: #fff; padding: 5px 0; margin: 3px 0; }
.marquee-row marquee a { font-weight: 700; font-size: 14px; color: #0000ee; text-decoration: none; margin: 0 8px; }
.marquee-row marquee .sep { margin: 0 6px; color: #999; font-weight: 700; }

/* SOCIAL BUTTONS */
.social-btn-row { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.social-pill { display: inline-flex; align-items: center; border-radius: 20px; color: #fff; font-weight: 700; font-size: 12px; padding: 4px 14px 4px 8px; text-decoration: none; }
.social-pill i { margin-right: 4px; font-size: 14px; }
.social-telegram { background: #0088cc; }
.social-whatsapp { background: #25d366; }
.social-youtube { background: #ff0000; }
.social-facebook { background: #1877f2; }
.social-x { background: #000; }
.social-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* === SEO CONTENT AREA === */
.seo-content-area { background: #fff; border-top: 4px solid #612625; margin-top: 10px; }
.seo-content-inner { max-width: 1100px; margin: 0 auto; padding: 25px 15px 30px; }
.seo-heading { background: #612625; color: #fff; padding: 10px 14px; font-size: 20px; font-weight: 700; margin: 20px 0 12px 0; font-family: Arial, sans-serif; line-height: 1.35; }
.seo-content-inner p { line-height: 1.85; color: #333; font-size: 15px; margin-bottom: 12px; }
@media (max-width: 768px) {
  .seo-heading { font-size: 17px; padding: 8px 10px; }
  .seo-content-inner p { font-size: 14px; }
  .seo-content-inner { padding: 15px 10px 20px; }
}
@media (max-width: 480px) {
  .seo-heading { font-size: 15px; padding: 7px 8px; }
  .seo-content-inner p { font-size: 13px; line-height: 1.75; }
}

/* === PAGES === */
.page-content { background: #fff; }
.page-wrap { max-width: 900px; margin: 0 auto; }
.page-title { font-size: 26px; font-weight: 700; color: #612625; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 3px solid #612625; }
.page-body { line-height: 1.8; color: #333; }
.page-body h2 { font-size: 22px; color: #612625; margin: 25px 0 12px; }
.page-body h3 { font-size: 18px; color: #1a1a1a; margin: 20px 0 10px; }
.page-body p { margin-bottom: 12px; }
.page-body ul, .page-body ol { margin: 0 0 12px 20px; }
.page-body li { margin-bottom: 6px; }
.page-body a { color: #0000ee; }
.page-body a:hover { color: #ff0000; }
@media (max-width: 768px) {
  .page-title { font-size: 20px; }
  .page-body h2 { font-size: 18px; }
  .page-body h3 { font-size: 16px; }
}

/* === CONTENT AREA === */
.content-area { max-width: 1100px; margin: 0 auto; padding: 15px 10px; }

/* === FLEX CATEGORY BOXES === */
.flex-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 15px; width: 100%; }
.flex-box { border: 2px solid #d3681f; display: flex; flex-direction: column; background: #fff; }
.flex-box header { background: #7a312e; color: #fff; padding: 6px 8px; text-align: center; }
.flex-box header h2 { margin: 0; font-family: Arial, sans-serif; font-size: 18px; font-weight: 700; }
.flex-box article { flex: 1; padding: 8px 10px; font-size: 14px; }
.flex-box article ul { list-style: none; padding: 0; margin: 0; }
.flex-box article li { padding: 4px 0; border-bottom: 1px dotted #ddd; }
.flex-box article li:last-child { border-bottom: none; }
.flex-box article a { color: #0000ee; font-weight: 700; text-decoration: none; font-size: 14px; }
.flex-box article a:hover { color: #ff0000; }
.flex-box footer { padding: 8px; text-align: right; }
.flex-box footer a { font-weight: 700; font-size: 16px; color: #0501a1; text-decoration: none; }
.flex-box footer a:hover { color: #ff0000; }
.new-tag { background: #ff0000; color: #fff; font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 2px; margin-right: 4px; animation: blink 1s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }

/* === SINGLE POST === */
.post-wrap { display: flex; gap: 20px; }
.post-main { flex: 1; min-width: 0; }
.post-sidebar { width: 300px; flex-shrink: 0; }
@media (max-width: 992px) {
  .post-wrap { flex-direction: column; }
  .post-sidebar { width: 100%; }
}
.post-breadcrumb { padding: 10px 0; border-bottom: 1px solid #eee; margin-bottom: 15px; font-size: 12px; color: #888; }
.post-breadcrumb a { color: #612625; }
.post-title { font-size: 20px; font-weight: 700; color: #1a1a1a; margin-bottom: 10px; line-height: 1.4; }
.post-meta { font-size: 12px; color: #888; margin-bottom: 15px; display: flex; gap: 15px; flex-wrap: wrap; align-items: center; }
.post-meta .badge-cat { background: #612625; color: #fff; padding: 2px 8px; border-radius: 3px; font-size: 11px; }
.post-featured-img { max-width: 100%; height: auto; border-radius: 4px; margin-bottom: 15px; }
.post-content { line-height: 1.8; color: #333; }
.post-content p { margin-bottom: 12px; }
.post-content img { max-width: 100%; height: auto; }
.post-content a { color: #0000ee; }
.post-content h3, .post-content h4 { color: #612625; margin: 18px 0 10px; }

/* === RELATED POSTS CARDS === */
.related-heading { color: #612625; font-size: 22px; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 3px solid #612625; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.related-card { display: flex; flex-direction: column; background: #fff; border-radius: 8px; overflow: hidden; text-decoration: none; color: #222; border: 1px solid #e0e0e0; transition: transform 0.2s, box-shadow 0.2s; }
.related-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); text-decoration: none; color: #222; }
.related-card-thumb { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; overflow: hidden; background: #f0f0f0; }
.related-card-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; background: #f0f0f0; }
.related-card-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f5f5f5, #e0e0e0); color: #aaa; font-size: 32px; }
.related-card-thumb .new-tag { position: absolute; top: 6px; left: 6px; z-index: 1; }
.related-card-body { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; }
.related-card-cat { font-size: 11px; color: #d3681f; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.related-card-body h3 { font-size: 14px; font-weight: 700; line-height: 1.4; margin: 0; color: #1a1a1a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .related-card-body h3 { font-size: 13px; }
}

/* === BN POST HEADER BOX (Label-Value Grid) === */
.bn-post-header-box { margin-bottom: 20px; font-size: 16px; }
.bn-post-header-box .bn-row { display: grid; grid-template-columns: 170px 1fr; column-gap: 10px; margin-bottom: 10px; align-items: start; }
.bn-post-header-box .bn-row .bn-label { font-weight: bold; color: #d00; line-height: 1.4; }
.bn-post-header-box .bn-row .bn-value { color: #003399; font-size: 15px; font-weight: normal; line-height: 1.5; word-break: break-word; }
.bn-post-header-box .bn-row:first-child .bn-value { font-size: 25px; font-weight: 700; line-height: 1.35; color: #000; }
@media (max-width: 600px) {
  .bn-post-header-box .bn-row { grid-template-columns: 1fr; }
  .bn-post-header-box .bn-row .bn-label { margin-bottom: 4px; }
  .bn-post-header-box .bn-row:first-child .bn-value { font-size: 18px; }
}

/* === SARKARI-STYLE TABLE SYSTEM === */
.bn-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 15px; }
.bn-table + .bn-table { margin: 0; }
.bn-table th, .bn-table td { border: 1px solid #000; padding: 10px 12px; vertical-align: top; text-align: left; line-height: 1.6; }
.bn-table th { background: #ffffff; color: #000; font-weight: bold; font-size: 20px; text-align: center; }
.bn-table th h2 { margin: 0; font-size: 20px; color: #000; line-height: 1.4; }
.bn-table th.bn-th-red { background: #5c1802; color: #fff; font-size: 15px; border-color: #5c1802; text-align: center; }
.bn-table th.bn-th-green { background: #1b8a1b; color: #fff; font-size: 15px; border-color: #1b8a1b; text-align: center; }
.bn-table thead th { border-color: #000; }
.bn-table tbody tr:nth-child(even) { background: #f9f9f9; }
.bn-table tbody tr:hover { background: #fff3e0; }
.bn-site-brand { text-align: center; font-weight: bold; color: #d00; font-size: 15px; background: #fffbe6; padding: 8px; letter-spacing: 1px; border: 1px solid #000; }
.bn-list { list-style: disc; padding-left: 22px; margin: 4px 0; overflow: hidden; }
.bn-list li { padding: 3px 0; line-height: 1.7; word-break: break-word; }
.bn-section-title { color: #612625; font-size: 20px; margin: 15px 0 5px 0; padding: 5px 0; border-bottom: 2px solid #612625; }
.bn-list-ol { margin: 10px 0 15px 20px; line-height: 2; }
.bn-link { color: #0000ee; font-weight: 600; text-decoration: none; }
.bn-link:hover { color: #ff0000; text-decoration: underline; }
.bn-center { text-align: center; }
.bn-highlight { color: #d00; font-weight: bold; }
.bn-title { text-align: center; font-weight: bold; margin: 10px 0; }

/* === SHARE BUTTONS === */
.share-section { margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; text-align: center; }
.share-section strong { display: block; margin-bottom: 8px; font-size: 14px; color: #333; }
.share-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; gap: 5px; padding: 8px 16px; border-radius: 25px; color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none; border: none; cursor: pointer; transition: opacity 0.2s, transform 0.2s; white-space: nowrap; }
.share-btn:hover { opacity: 0.9; color: #fff !important; text-decoration: none; transform: translateY(-1px); }
.share-btn i { font-size: 16px; }
.share-whatsapp { background: #25d366; }
.share-telegram { background: #0088cc; }
.share-copy { background: #555; }
@media (max-width: 480px) {
  .share-buttons { gap: 6px; }
  .share-btn { padding: 7px 12px; font-size: 12px; }
  .share-btn i { font-size: 14px; }
}

/* Social join buttons inside posts */
.bn-social-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 25px; color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none !important; margin: 4px; transition: opacity 0.2s; }
.bn-social-btn:hover { opacity: 0.9; color: #fff !important; text-decoration: none !important; }
.post-content p:has(.bn-social-btn) { text-align: center; }
.post-content .bn-social-btn { text-align: center; }
.bn-social-btn-whatsapp { background: #25d366; }
.bn-social-btn-telegram { background: #0088cc; }
.bn-social-btn-youtube { background: #ff0000; }
.bn-social-btn-facebook { background: #1877f2; }
.bn-social-btn-x { background: #000; }
.bn-social-btn-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.bn-post-header-box { margin-bottom: 20px; }

/* FAQ section */
.bn-faq { margin: 15px 0; }
.bn-faq h3 { color: #612625; font-size: 20px; margin-bottom: 10px; }
.bn-faq-item { background: #f9f9f9; border-left: 4px solid #612625; padding: 10px 15px; margin-bottom: 8px; }
.bn-faq-q { font-weight: 700; color: #222; margin-bottom: 3px; }
.bn-faq-a { color: #444; font-size: 15px; }

@media (max-width: 600px) {
  .bn-post-header-box .bn-row { grid-template-columns: 1fr; }
  .bn-post-header-box .bn-row .bn-label { margin-bottom: 4px; }
  .bn-post-header-box .bn-row:first-child .bn-value { font-size: 18px; }
}

/* === SIDEBAR === */
.sidebar-widget { background: #fff; border: 1px solid #ddd; margin-bottom: 15px; }
.sidebar-widget-title { background: #612625; color: #fff; padding: 10px 14px; font-size: 14px; font-weight: 700; }
.sidebar-widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar-widget li { padding: 8px 14px; border-bottom: 1px solid #f0f0f0; }
.sidebar-widget li:last-child { border-bottom: none; }
.sidebar-widget li a { color: #333; font-size: 13px; }
.sidebar-widget li a:hover { color: #612625; }

/* === FOOTER === */
.site-footer { background: #1a1a2e; color: #ccc; padding: 30px 0 0; margin-top: 25px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 25px; padding: 0 15px; }
.footer-col h4 { color: #ffd700; font-size: 16px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #ffd700; display: inline-block; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: #ccc; font-size: 13px; }
.footer-col a:hover { color: #ffd700; text-decoration: none; }
.footer-col p { font-size: 13px; line-height: 1.7; }
.social-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.social-row a { display: inline-flex; align-items: center; border-radius: 20px; color: #fff; font-weight: 700; font-size: 11px; padding: 4px 12px 4px 8px; text-decoration: none; }
.footer-bottom { background: #111128; padding: 12px; text-align: center; margin-top: 20px; font-size: 13px; }

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .post-wrap { flex-direction: column; }
  .post-sidebar { width: 100%; }
  .header-inner { flex-wrap: wrap; }
  .site-branding h1 { font-size: 32px; }
  .flex-container { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 768px) {
  .header-inner { flex-direction: column; text-align: center; padding: 10px; }
  .site-logo-fallback, .site-logo img { width: 70px; height: 70px; font-size: 28px; }
  .site-branding h1 { font-size: 22px; }
  .site-branding .tagline { font-size: 11px; }
  .nav-bar-mobile { display: flex; }
  .nav-inner { flex-direction: column; }
  .nav-inner a { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); text-align: center; padding: 8px 13px; font-size: 14px; }
  .nav-inner:not(.show) { display: none; }
  .nav-inner.show { display: flex; flex-direction: column; }
  .color-grid { grid-template-columns: repeat(2, 1fr); }
  .flex-container { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .footer-inner { grid-template-columns: 1fr !important; }
  .content-area { padding: 10px 8px; }
  .container { padding: 0 12px; }
  .site-footer { padding: 20px 0 0; }
  .footer-bottom { font-size: 12px; padding: 10px; }
  .post-content { font-size: 15px; }
  .post-content img { width: 100%; }
  .bn-table { font-size: 13px; }
  .bn-table th, .bn-table td { padding: 5px; font-size: 13px; }
  .social-btn-row { flex-wrap: wrap; }
  .homepage-search-bar { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 14px; }
  .site-branding h1 { font-size: 18px; }
  .site-branding .tagline { font-size: 10px; }
  .site-logo-fallback, .site-logo img { width: 55px; height: 55px; font-size: 22px; }
  .color-grid a { font-size: 12px; padding: 6px 2px; }
  .flex-container { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .flex-box header h2 { font-size: 15px; }
  .flex-box article { font-size: 13px; padding: 6px 8px; }
  .flex-box article a { font-size: 13px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .related-card-body { padding: 8px; }
  .related-card-body h3 { font-size: 12px; }
  .related-card-cat { font-size: 10px; }
  .related-heading { font-size: 18px; }
  .bn-table { font-size: 12px; }
  .bn-table th, .bn-table td { padding: 4px; font-size: 12px; }
  .bn-table th h2 { font-size: 15px; }
  .bn-social-btn { padding: 6px 14px; font-size: 12px; }
  .nav-inner a { padding: 7px 10px; font-size: 13px; }
  .footer-col h4 { font-size: 14px; }
  .footer-col a, .footer-col p { font-size: 12px; }
  .mobile-search-input { font-size: 13px; }
}

/* ============================================
   UNIVERSAL TABLE & CONTENT FIX
   Works with: bn-table, sr-table, ChatGPT HTML, manual tables
   ============================================ */

/* Force padding on ALL table cells inside post-content - overrides cellpadding attribute */
.post-content table td,
.post-content table th {
  padding: 10px 14px !important;
  vertical-align: top;
  text-align: left;
  line-height: 1.7;
  word-break: break-word;
}

/* Keep table borders consistent */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 15px;
}
.post-content table td,
.post-content table th {
  border: 1px solid #000;
}
.post-content table th {
  font-weight: bold;
}

/* BULLETS FIX: Lists inside table cells - bullets MUST stay inside */
.post-content table td ul,
.post-content table td ol {
  margin: 2px 0 !important;
  padding-left: 24px !important;
  list-style-position: outside !important;
}
.post-content table td ul li,
.post-content table td ol li {
  padding: 2px 0 !important;
  margin: 0 !important;
  line-height: 1.7;
  word-break: break-word;
}

/* Hide empty UL/OL in tables (ChatGPT sometimes generates these) */
.post-content table td ul:empty,
.post-content table td ol:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

/* Paragraphs inside table cells */
.post-content table td p {
  margin: 2px 0;
  line-height: 1.7;
}

/* Links inside table cells */
.post-content table td a {
  color: #0000ee;
  font-weight: 600;
  text-decoration: none;
}
.post-content table td a:hover {
  color: #ff0000;
  text-decoration: underline;
}

/* General post-content list styling (outside tables) */
.post-content ul,
.post-content ol {
  margin: 8px 0;
  padding-left: 26px;
  list-style-position: outside;
}
.post-content li {
  padding: 2px 0;
  line-height: 1.7;
  word-break: break-word;
}

/* Mobile responsive for tables */
@media (max-width: 600px) {
  .post-content table { font-size: 13px; }
  .post-content table td,
  .post-content table th { padding: 7px 8px !important; font-size: 13px; }
  .post-content table td ul,
  .post-content table td ol { padding-left: 18px !important; }
}


/* === AUTO JOIN BUTTONS (WhatsApp & Telegram) === */
.bn-join-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
  padding: 15px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.bn-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 25px;
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  transition: opacity 0.2s, transform 0.2s;
}
.bn-join-btn:hover {
  opacity: 0.9;
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}
.bn-join-btn i { font-size: 18px; }
.bn-join-whatsapp { background: #25d366; }
.bn-join-telegram { background: #0088cc; }

@media (max-width: 600px) {
  .bn-join-buttons { gap: 8px; }
  .bn-join-btn { padding: 8px 18px; font-size: 13px; }
  .bn-join-btn i { font-size: 16px; }
}


/* Page content enhancements */
.page-body h4 { font-size: 16px; color: #1a1a1a; margin: 15px 0 8px; font-weight: 600; }
.page-body strong { color: #1a1a1a; }
.page-wrap { padding: 30px 20px; }

/* === UPCOMING CATEGORY SPECIAL STYLING === */
.flex-box-upcoming { border-color: #ff6600 !important; border-width: 3px !important; }
.flex-box-upcoming header { background: linear-gradient(135deg, #ff6600, #ff8533) !important; }
.upcoming-tag { background: #ff6600; color: #fff; font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 2px; margin-right: 4px; display: inline-block; }
.upcoming-header { animation: upcomingPulse 2s ease-in-out infinite; }
@keyframes upcomingPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.85; } }

/* === SEO CONTENT PARAGRAPH SPACING FIX === */
.seo-content-inner .seo-heading { margin: 30px 0 16px 0; }
.seo-content-inner .seo-heading:first-child { margin-top: 0; }
.seo-content-inner p { margin-bottom: 18px; line-height: 1.9; padding: 2px 0; }
.seo-content-inner .seo-heading + p { margin-top: 4px; }
.seo-content-inner p + p { margin-top: 4px; }

/* Better visual separation between sections */
.seo-content-inner .seo-heading::before {
  content: ;
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ddd, transparent);
  margin-bottom: 12px;
}
.seo-content-inner .seo-heading:first-child::before {
  display: none;
}

/* Strong tags in SEO content */
.seo-content-inner strong { color: #612625; }

/* Mobile responsive for upcoming */
@media (max-width: 768px) {
  .seo-content-inner .seo-heading { margin: 24px 0 12px 0; }
  .seo-content-inner p { margin-bottom: 14px; }
}
@media (max-width: 480px) {
  .flex-box-upcoming header h2 { font-size: 15px; }
  .upcoming-tag { font-size: 8px; }
  .seo-content-inner .seo-heading { margin: 20px 0 10px 0; }
  .seo-content-inner p { margin-bottom: 12px; }
}


/* === SARKARI SECTION PAGES === */
.sjn-section-page { background: #f5f5f5; }
.sjn-section-banner { color: #fff; padding: 35px 15px; text-align: center; }
.sjn-yojana-banner { background: linear-gradient(135deg, #612625, #7a312e); }
.sjn-kaam-banner { background: linear-gradient(135deg, #612625, #d3681f); }
.sjn-section-banner h1 { font-size: 28px; font-weight: 700; margin: 0; padding: 0 10px; }
.sjn-section-banner p { font-size: 16px; margin: 10px 0 0; opacity: 0.95; padding: 0 5px; line-height: 1.6; }
.sjn-breadcrumb { background: #fff; padding: 10px 0; border-bottom: 1px solid #e0e0e0; font-size: 14px; }
.sjn-breadcrumb a { color: #612625; text-decoration: none; }
.sjn-breadcrumb a:hover { text-decoration: underline; }
.sjn-subcat-grid { padding: 25px 0; }
.sjn-section-title { font-size: 20px; font-weight: 700; color: #612625; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 3px solid #612625; }
.sjn-section-title .sjn-view-all { float: right; font-size: 14px; color: #612625; font-weight: 500; }
.sjn-subcat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.sjn-subcat-card { display: flex; flex-direction: column; align-items: center; padding: 14px 8px; background: #fff; border-radius: 8px; border: 2px solid; text-decoration: none; color: #333; transition: transform 0.2s, box-shadow 0.2s; }
.sjn-subcat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); text-decoration: none; color: #333; }
.sjn-subcat-icon { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; margin-bottom: 8px; }
.sjn-subcat-name { font-weight: 700; font-size: 13px; text-align: center; }
.sjn-subcat-count { font-size: 11px; color: #888; margin-top: 3px; }
.sjn-posts-section { padding: 15px 0; }
.sjn-posts-list { background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; }
.sjn-post-item { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid #f0f0f0; text-decoration: none; color: #333; transition: background 0.2s; }
.sjn-post-item:hover { background: #fff8f0; text-decoration: none; color: #612625; }
.sjn-post-item:last-child { border-bottom: none; }
.sjn-post-arrow { color: #612625; margin-right: 10px; font-size: 14px; }
.sjn-post-title { flex: 1; font-weight: 500; font-size: 15px; }
.sjn-kaam-section { padding: 15px 0; }
.sjn-kaam-title { font-size: 20px; font-weight: 700; color: #612625; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 3px solid #612625; }
.sjn-kaam-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.sjn-kaam-link { display: flex; align-items: center; padding: 10px 14px; background: #fff; border-radius: 6px; text-decoration: none; color: #333; border: 1px solid #e0e0e0; transition: all 0.2s; }
.sjn-kaam-link:hover { background: #fff8f0; border-color: #612625; text-decoration: none; color: #612625; }
.sjn-kaam-icon { margin-right: 10px; color: #612625; font-size: 14px; }
.sjn-kaam-text { font-size: 14px; font-weight: 500; }
.sjn-kaam-external .sjn-kaam-icon { color: #d3681f; }
.sjn-kaam-external:hover { border-color: #d3681f; background: #fff3e0; color: #d3681f; }
.sjn-seo-content { padding: 20px 0; }
.sjn-seo-content h2 { font-size: 18px; color: #612625; margin-bottom: 10px; }
.sjn-seo-content p { color: #555; line-height: 1.7; font-size: 14px; }

/* === SARKARI YOJANA INTRO SECTION === */
.sjn-intro-section { background: #fff; padding: 25px 0; border-bottom: 3px solid #612625; }
.sjn-intro-content p { font-size: 14px; line-height: 1.75; color: #444; margin-bottom: 12px; }
.sjn-intro-heading { font-size: 16px; font-weight: 700; color: #612625; margin: 18px 0 6px; display: flex; align-items: center; gap: 6px; padding-bottom: 4px; border-bottom: 2px solid #f0e0d0; }
.sjn-intro-heading:first-child { margin-top: 0; }
.sjn-intro-heading i { font-size: 15px; color: #FF9800; }
.sjn-intro-content p:last-child { margin-bottom: 0; }

/* === SUBCATEGORY CARD DESCRIPTION === */
.sjn-subcat-desc { font-size: 11px; color: #999; text-align: center; margin-top: 3px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* === POST CATEGORY TAG === */
.sjn-post-cat-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; color: #fff; font-size: 11px; font-weight: 600; margin-left: 8px; white-space: nowrap; }

/* === FAQ SECTION === */
.sjn-faq-section { padding: 25px 0; }
.sjn-faq-list { background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; }
.sjn-faq-item { border-bottom: 1px solid #f0f0f0; }
.sjn-faq-item:last-child { border-bottom: none; }
.sjn-faq-q { padding: 14px 16px; font-weight: 700; font-size: 15px; color: #612625; cursor: pointer; display: flex; align-items: flex-start; gap: 8px; transition: background 0.2s; }
.sjn-faq-q:hover { background: #fff8f0; }
.sjn-faq-q i { font-size: 14px; margin-top: 3px; transition: transform 0.3s; flex-shrink: 0; }
.sjn-faq-item.active .sjn-faq-q i { transform: rotate(90deg); }
.sjn-faq-a { padding: 0 16px 14px 38px; font-size: 14px; line-height: 1.7; color: #555; display: none; }
.sjn-faq-item.active .sjn-faq-a { display: block; }

.sjn-quick-links { background: #fff; padding: 15px 0; border-bottom: 3px solid #612625; }
.sjn-quick-links-inner { display: flex; gap: 15px; max-width: 700px; margin: 0 auto; }
.sjn-quick-link { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 20px 15px; border-radius: 10px; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; text-align: center; }
.sjn-quick-link:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255,215,0,0.5); text-decoration: none; background: linear-gradient(135deg, #ffd700, #ffaa00) !important; color: #000 !important; }
.sjn-quick-link:hover span { color: #000 !important; }
.sjn-quick-link:hover small { color: #333 !important; }
.sjn-ql-yojana { background: linear-gradient(135deg, #612625, #7a312e); color: #fff; }
.sjn-ql-kaam { background: linear-gradient(135deg, #612625, #d3681f); color: #fff; }
.sjn-quick-link i { font-size: 32px; margin-bottom: 8px; }
.sjn-quick-link span { font-size: 18px; font-weight: 700; display: block; }
.sjn-quick-link small { font-size: 12px; opacity: 0.8; margin-top: 4px; display: block; }
@media (max-width: 600px) {
  .sjn-quick-links-inner { flex-direction: column; gap: 10px; }
  .sjn-quick-link { flex-direction: row; padding: 15px; gap: 12px; text-align: left; }
  .sjn-quick-link i { font-size: 28px; margin-bottom: 0; }
  .sjn-subcat-cards { grid-template-columns: repeat(2, 1fr); }
  .sjn-kaam-links { grid-template-columns: 1fr; }
  .sjn-section-banner h1 { font-size: 22px; }
}



/* === SARKARI KAAM BEAUTIFUL CARDS === */
.sk-intro { background: #fff; padding: 20px 0; border-bottom: 3px solid #612625; }
.sk-intro p { font-size: 15px; line-height: 1.8; color: #444; max-width: 900px; margin: 0 auto; text-align: center; }

.sk-section { padding: 20px 0; }
.sk-section-header { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; padding: 14px 18px; background: linear-gradient(135deg, #612625, #7a312e); border-radius: 10px; }
.sk-section-icon-wrap { width: 50px; height: 50px; background: rgba(255,255,255,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sk-section-icon-wrap i { font-size: 24px; color: #ffd700; }
.sk-section-info { flex: 1; }
.sk-section-title { font-size: 20px; font-weight: 700; color: #fff; margin: 0; padding: 0; border: none; }
.sk-section-desc { font-size: 13px; color: rgba(255,255,255,0.85); margin: 4px 0 0; line-height: 1.5; }

.sk-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }

.sk-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border-radius: 10px; text-decoration: none; color: #333; border: 2px solid #e8e0d8; transition: all 0.25s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.sk-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(97,38,37,0.15); border-color: #612625; text-decoration: none; color: #612625; background: #fffbf5; }
.sk-card-external { border-color: #f0e0d0; }
.sk-card-external:hover { border-color: #d3681f; box-shadow: 0 6px 20px rgba(211,104,31,0.15); color: #d3681f; background: #fff8f0; }

.sk-card-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; background: linear-gradient(135deg, #f5e6d3, #edbd79); color: #612625; }
.sk-card-external .sk-card-icon { background: linear-gradient(135deg, #fff3e0, #ffe0b2); color: #d3681f; }
.sk-card:hover .sk-card-icon { background: linear-gradient(135deg, #612625, #7a312e); color: #ffd700; }
.sk-card-external:hover .sk-card-icon { background: linear-gradient(135deg, #d3681f, #e8781f); color: #fff; }

.sk-card-content { flex: 1; min-width: 0; }
.sk-card-title { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; color: #333; }
.sk-card:hover .sk-card-title { color: #612625; }
.sk-card-external:hover .sk-card-title { color: #d3681f; }
.sk-card-type { display: inline-block; font-size: 11px; font-weight: 600; color: #888; margin-top: 3px; text-transform: uppercase; letter-spacing: 0.5px; }

.sk-card-arrow { flex-shrink: 0; font-size: 16px; color: #ccc; transition: all 0.25s; }
.sk-card:hover .sk-card-arrow { color: #612625; transform: translateX(3px); }
.sk-card-external:hover .sk-card-arrow { color: #d3681f; }

.sk-seo-content { background: #fff; border-top: 4px solid #612625; margin-top: 15px; padding: 25px 0; }
.sk-seo-content h2 { font-size: 18px; color: #612625; margin-bottom: 10px; font-weight: 700; }
.sk-seo-content p { color: #555; line-height: 1.8; font-size: 14px; }

@media (max-width: 768px) {
  .sk-section-header { padding: 10px 14px; gap: 10px; }
  .sk-section-icon-wrap { width: 40px; height: 40px; }
  .sk-section-icon-wrap i { font-size: 20px; }
  .sk-section-title { font-size: 17px; }
  .sk-section-desc { font-size: 12px; }
  .sk-cards-grid { grid-template-columns: 1fr; gap: 8px; }
  .sk-card { padding: 12px 14px; }
  .sk-card-icon { width: 36px; height: 36px; font-size: 16px; }
  .sk-card-title { font-size: 13px; }
}

/* === SUBPAGE CARDS (Aadhar, PAN, Voter etc.) === */
.sk-sub-section { margin: 25px 0; }
.sk-sub-header { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; padding: 12px 16px; background: linear-gradient(135deg, #612625, #7a312e); border-radius: 10px; }
.sk-sub-icon { width: 44px; height: 44px; background: rgba(255,255,255,0.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sk-sub-icon i { font-size: 22px; color: #ffd700; }
.sk-sub-header h3 { font-size: 18px; font-weight: 700; color: #fff; margin: 0; padding: 0; border: none; }
.sk-sub-header p { font-size: 13px; color: rgba(255,255,255,0.85); margin: 3px 0 0; }

.sk-sub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.sk-sub-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-radius: 10px; text-decoration: none; color: #333; border: 2px solid #e8e0d8; transition: all 0.25s ease; box-shadow: 0 2px 6px rgba(0,0,0,0.03); }
.sk-sub-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(97,38,37,0.12); border-color: #612625; text-decoration: none; color: #612625; background: #fffbf5; }
.sk-sub-ext:hover { border-color: #d3681f; box-shadow: 0 6px 18px rgba(211,104,31,0.12); color: #d3681f; background: #fff8f0; }

.sk-sub-card-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 17px; background: linear-gradient(135deg, #f5e6d3, #edbd79); color: #612625; }
.sk-sub-ext .sk-sub-card-icon { background: linear-gradient(135deg, #fff3e0, #ffe0b2); color: #d3681f; }
.sk-sub-card:hover .sk-sub-card-icon { background: linear-gradient(135deg, #612625, #7a312e); color: #ffd700; }
.sk-sub-ext:hover .sk-sub-card-icon { background: linear-gradient(135deg, #d3681f, #e8781f); color: #fff; }

.sk-sub-card-body { flex: 1; min-width: 0; }
.sk-sub-card-title { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; color: #333; }
.sk-sub-card:hover .sk-sub-card-title { color: #612625; }
.sk-sub-ext:hover .sk-sub-card-title { color: #d3681f; }
.sk-sub-card-tag { display: inline-block; font-size: 10px; font-weight: 600; color: #999; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; }

.sk-sub-card-arrow { flex-shrink: 0; font-size: 15px; color: #ccc; transition: all 0.25s; }
.sk-sub-card:hover .sk-sub-card-arrow { color: #612625; transform: translateX(3px); }
.sk-sub-ext:hover .sk-sub-card-arrow { color: #d3681f; }

@media (max-width: 768px) {
  .sk-sub-header { padding: 10px 12px; gap: 8px; }
  .sk-sub-icon { width: 36px; height: 36px; }
  .sk-sub-icon i { font-size: 18px; }
  .sk-sub-header h3 { font-size: 16px; }
  .sk-sub-cards { grid-template-columns: 1fr; gap: 8px; }
  .sk-sub-card { padding: 10px 12px; }
  .sk-sub-card-icon { width: 34px; height: 34px; font-size: 15px; }
}

/* === Featured Image Styling === */
.post-featured-image {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* === Enhanced Post Content Styling === */
.post-content h2 {
  color: #1a237e;
  font-size: 22px;
  font-weight: 700;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid #1a237e;
  line-height: 1.4;
}
.post-content h2:first-child {
  margin-top: 0;
}
.post-content h3 {
  color: #612625;
  font-size: 18px;
  font-weight: 700;
  margin: 22px 0 10px;
  line-height: 1.4;
}
.post-content h4 {
  color: #4a148c;
  font-size: 16px;
  font-weight: 600;
  margin: 18px 0 8px;
}
.post-content p {
  margin-bottom: 14px;
  line-height: 1.85;
  color: #333;
  font-size: 15px;
}
.post-content ul, .post-content ol {
  margin: 10px 0 14px 20px;
  line-height: 1.8;
}
.post-content li {
  margin-bottom: 6px;
}
.post-content strong {
  color: #1a1a1a;
}
.post-content .bi {
  margin-right: 4px;
}
.post-content blockquote {
  border-left: 4px solid #1a237e;
  background: #f5f5ff;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 0 6px 6px 0;
  font-style: italic;
}

/* Info/Warning/Success boxes in post content */
.post-content .info-box {
  background: #e3f2fd;
  border-left: 4px solid #1976d2;
  padding: 12px 16px;
  margin: 14px 0;
  border-radius: 0 6px 6px 0;
}
.post-content .warning-box {
  background: #fff3e0;
  border-left: 4px solid #f57c00;
  padding: 12px 16px;
  margin: 14px 0;
  border-radius: 0 6px 6px 0;
}
.post-content .success-box {
  background: #e8f5e9;
  border-left: 4px solid #388e3c;
  padding: 12px 16px;
  margin: 14px 0;
  border-radius: 0 6px 6px 0;
}

@media (max-width: 768px) {
  .post-content h2 { font-size: 19px; }
  .post-content h3 { font-size: 16px; }
  .post-content p { font-size: 14px; }
}

/* ============================================
   Document Tools - Tools Page Styles
   ============================================ */

/* Quick Link - Tools */
.sjn-ql-tools { background: linear-gradient(135deg, #612625, #8e3a3a); color: #fff; }

/* Breadcrumb */
.bn-breadcrumb { background: #f8f9fa; padding: 10px 0; border-bottom: 1px solid #e9ecef; font-size: 13px; }
.bn-breadcrumb a { color: #612625; text-decoration: none; }
.bn-breadcrumb a:hover { text-decoration: underline; }
.bn-breadcrumb span { color: #666; }
.bn-breadcrumb .bi { font-size: 11px; margin: 0 4px; color: #999; }

/* Tools Listing Page */
.bn-tools-page { padding: 20px 0; }
.bn-tools-hero { text-align: center; padding: 30px 20px; margin-bottom: 30px; background: linear-gradient(135deg, #612625, #8b3a3a); border-radius: 12px; color: #fff; }
.bn-tools-hero-icon { font-size: 48px; margin-bottom: 12px; }
.bn-tools-hero h1 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.bn-tools-hero-sub { font-size: 14px; opacity: 0.85; max-width: 600px; margin: 0 auto; }

.bn-tools-category { margin-bottom: 35px; }
.bn-tools-cat-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 3px solid #612625; }
.bn-tools-cat-header .bn-tools-cat-icon { width: 44px; height: 44px; background: #612625; color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.bn-tools-cat-header h2 { font-size: 18px; font-weight: 700; color: #1a1a1a; margin: 0; }
.bn-tools-cat-header p { font-size: 13px; color: #777; margin: 2px 0 0; }

.bn-tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 576px) { .bn-tools-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .bn-tools-grid { grid-template-columns: repeat(4, 1fr); } }

.bn-tool-card { display: flex; align-items: center; gap: 10px; padding: 14px 12px; background: #fff; border-radius: 10px; border: 1px solid #e8e8e8; text-decoration: none; transition: all 0.2s ease; position: relative; }
.bn-tool-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); border-color: #612625; text-decoration: none; }
.bn-tool-card-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; flex-shrink: 0; }
.bn-tool-card-body { flex: 1; min-width: 0; }
.bn-tool-card-body h3 { font-size: 13px; font-weight: 700; color: #1a1a1a; margin: 0; line-height: 1.3; }
.bn-tool-card-body p { font-size: 11px; color: #888; margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-tool-card-arrow { color: #ccc; font-size: 14px; transition: all 0.2s; }
.bn-tool-card:hover .bn-tool-card-arrow { color: #612625; transform: translateX(3px); }

/* Tool Page */
.bn-tool-page { padding: 20px 0; }
.bn-tool-page-layout { display: flex; gap: 24px; }
.bn-tool-main { flex: 1; min-width: 0; }
.bn-tool-sidebar { width: 280px; flex-shrink: 0; }
@media (max-width: 768px) {
  .bn-tool-page-layout { flex-direction: column; }
  .bn-tool-sidebar { width: 100%; }
}

.bn-tool-header { display: flex; align-items: center; gap: 16px; padding: 20px; background: #fff; border-radius: 12px; margin-bottom: 20px; border: 1px solid #e8e8e8; }
.bn-tool-header-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; flex-shrink: 0; }
.bn-tool-header-info h1 { font-size: 20px; font-weight: 700; color: #1a1a1a; margin: 0; }
.bn-tool-header-info p { font-size: 13px; color: #777; margin: 4px 0 0; }

.bn-tool-desc { background: #fff; padding: 16px 20px; border-radius: 10px; margin-bottom: 20px; border: 1px solid #e8e8e8; }
.bn-tool-desc p { font-size: 14px; color: #555; margin: 0; }

.bn-tool-ui { background: #fff; padding: 20px; border-radius: 12px; margin-bottom: 20px; border: 1px solid #e8e8e8; }

/* Upload Area */
.bn-upload-area { border: 2px dashed #ccc; border-radius: 12px; padding: 10px; cursor: pointer; transition: all 0.2s; }
.bn-upload-area:hover { border-color: #612625; background: #fdf5f5; }
.bn-upload-area.bn-drag-over { border-color: #612625; background: #fdf0f0; }
.bn-upload-box { text-align: center; padding: 30px 20px; }
.bn-upload-box i { font-size: 48px; color: #ccc; display: block; margin-bottom: 12px; }
.bn-upload-box p { font-size: 15px; font-weight: 600; color: #555; margin: 0 0 6px; }
.bn-upload-box span { font-size: 12px; color: #999; }
.bn-upload-area.bn-upload-sm .bn-upload-box { padding: 20px 15px; }
.bn-upload-area.bn-upload-sm .bn-upload-box i { font-size: 36px; }
.bn-upload-area.bn-upload-sm .bn-upload-box p { font-size: 13px; }
.bn-file-input { display: none; }

.bn-preview-area { margin-bottom: 16px; }
.bn-preview-image { text-align: center; padding: 12px; background: #f9f9f9; border-radius: 8px; }
.bn-preview-image img { max-width: 100%; max-height: 400px; border-radius: 6px; }
.bn-small-preview { text-align: center; margin: 8px 0; }
.bn-small-preview img { max-height: 120px; border-radius: 6px; border: 1px solid #e0e0e0; }

.bn-file-info { padding: 8px 12px; background: #e3f2fd; border-radius: 6px; font-size: 13px; color: #1565c0; margin-top: 8px; }

/* Dual Upload */
.bn-dual-upload { display: flex; gap: 16px; margin-bottom: 16px; }
.bn-upload-half { flex: 1; }
.bn-upload-half h4 { font-size: 14px; font-weight: 600; margin: 0 0 8px; color: #333; }
@media (max-width: 576px) {
  .bn-dual-upload { flex-direction: column; }
}

/* Form Controls */
.bn-form-group { margin-bottom: 14px; }
.bn-form-group label { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 5px; }
.bn-form-control { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; transition: border-color 0.2s; }
.bn-form-control:focus { outline: none; border-color: #612625; box-shadow: 0 0 0 3px rgba(97,38,37,0.1); }
.bn-form-row { display: flex; gap: 12px; }
.bn-form-row .bn-form-group { flex: 1; }
@media (max-width: 576px) {
  .bn-form-row { flex-direction: column; gap: 0; }
}

.bn-range-input { width: 100%; accent-color: #612625; }
.bn-color-input { width: 50px; height: 36px; padding: 2px; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; }
.bn-form-group label input[type="checkbox"] { margin-right: 6px; accent-color: #612625; }

/* Size Info */
.bn-size-info { background: #fff3e0; border: 1px solid #ffe0b2; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #e65100; margin-bottom: 14px; }
.bn-size-info .bi { margin-right: 4px; }

.bn-info-text { font-size: 12px; color: #666; margin: 4px 0 0; }

/* Buttons */
.bn-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.bn-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.bn-btn-primary { background: #612625; color: #fff; }
.bn-btn-primary:hover:not(:disabled) { background: #7a3030; }
.bn-btn-success { background: #2e7d32; color: #fff; }
.bn-btn-success:hover { background: #388e3c; }
.bn-btn-secondary { background: #f5f5f5; color: #555; border: 1px solid #ddd; }
.bn-btn-secondary:hover { background: #eee; }

.bn-tool-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid #eee; }

/* Result Area */
.bn-result-area { margin-top: 20px; padding: 16px; background: #f0fff0; border: 1px solid #c8e6c9; border-radius: 10px; }
.bn-result-area h3 { font-size: 16px; font-weight: 700; color: #2e7d32; margin: 0 0 12px; }
.bn-result-area h3 .bi { margin-right: 4px; }

/* Age Calculator */
.bn-age-result { display: none; margin-top: 20px; }
.bn-age-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.bn-age-card { text-align: center; padding: 20px; border-radius: 12px; color: #fff; }
.bn-age-years { background: linear-gradient(135deg, #612625, #8b3a3a); }
.bn-age-months { background: linear-gradient(135deg, #1565c0, #1976d2); }
.bn-age-days { background: linear-gradient(135deg, #2e7d32, #43a047); }
.bn-age-num { display: block; font-size: 36px; font-weight: 800; line-height: 1.2; }
.bn-age-label { display: block; font-size: 13px; opacity: 0.85; margin-top: 4px; }

.bn-age-details { background: #fff; padding: 16px; border-radius: 10px; border: 1px solid #e0e0e0; }
.bn-age-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; font-size: 14px; }
@media (max-width: 480px) {
  .bn-age-detail-grid { grid-template-columns: 1fr; }
}
.bn-age-detail-grid strong { color: #333; }

/* ID Card Form */
.bn-idcard-form { margin-bottom: 16px; }

/* How to Use */
.bn-tool-howto { background: #fff; padding: 20px; border-radius: 12px; border: 1px solid #e8e8e8; }
.bn-tool-howto h3 { font-size: 16px; font-weight: 700; color: #1a1a1a; margin: 0 0 14px; }
.bn-tool-howto h3 .bi { color: #612625; margin-right: 6px; }
.bn-howto-steps { display: flex; flex-direction: column; gap: 10px; }
.bn-howto-step { display: flex; align-items: flex-start; gap: 10px; }
.bn-step-num { width: 26px; height: 26px; background: #612625; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.bn-howto-step p { font-size: 14px; color: #555; margin: 3px 0 0; }

/* Sidebar */
.bn-sidebar-widget { background: #fff; padding: 18px; border-radius: 10px; margin-bottom: 16px; border: 1px solid #e8e8e8; }
.bn-sidebar-widget h4 { font-size: 15px; font-weight: 700; color: #1a1a1a; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid #612625; }
.bn-sidebar-widget h4 .bi { color: #612625; margin-right: 6px; }

.bn-tool-list { list-style: none; padding: 0; margin: 0; }
.bn-tool-list li { margin-bottom: 6px; }
.bn-tool-list a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; font-size: 13px; color: #333; text-decoration: none; transition: background 0.2s; }
.bn-tool-list a:hover { background: #f5f0f0; color: #612625; }
.bn-tool-list a .bi { font-size: 14px; color: #612625; }

.bn-sidebar-info { background: #e8f5e9; border-color: #c8e6c9; }
.bn-sidebar-info p { font-size: 12px; color: #555; margin: 6px 0 0; }
.bn-sidebar-info p:first-child { margin-top: 0; }

/* Sub-category sections in category page */
.sjn-subcat-section { margin-bottom: 18px; border-bottom: 1px solid #eee; padding-bottom: 12px; }
.sjn-subcat-heading { font-size: 16px; margin: 10px 0 8px 0; display: flex; align-items: center; flex-wrap: wrap; }
.sjn-subcat-heading a:hover { text-decoration: underline; }

