/* Blog styles – prefixed "bl-" to avoid clashing with main.css / index.css
   (index.css sets h1/h2 to 54px "logofont", so headings are explicitly reset here). */
:root { --bl-dark:#002423; --bl-accent:#e8ce0e; --bl-red:#b22222; --bl-muted:#6b7280; --bl-line:#e5e7eb; }

.bl-hero { background: var(--bl-dark); color:#fff; text-align:center; padding:110px 15px 45px; }
.bl-hero h1 { font-family:logofont, 'Open Sans', sans-serif; font-size:56px; margin:0 0 6px; color:#fff; }
.bl-hero p  { margin:0; color:#cfdcdc; font-size:16px; }

.bl-wrap { padding-top:25px; padding-bottom:50px; }
.bl-breadcrumb { font-size:13px; color:var(--bl-muted); margin-bottom:20px; }
.bl-breadcrumb a { color:var(--bl-dark); }
.bl-breadcrumb a:hover { text-decoration:underline; }

/* Cards */
.bl-card { background:#fff; border:1px solid var(--bl-line); border-radius:12px; overflow:hidden; height:100%;
           display:flex; flex-direction:column; transition:box-shadow .25s, transform .25s; }
.bl-card:hover { box-shadow:0 10px 28px rgba(0,0,0,.12); transform:translateY(-3px); }
.bl-card-img { display:block; aspect-ratio:16/9; overflow:hidden; background:#eef1f1; }
.bl-card-img img { width:100%; height:100%; object-fit:cover; transition:transform .4s; display:block; }
.bl-card:hover .bl-card-img img { transform:scale(1.05); }
.bl-card-body { padding:18px 20px 20px; display:flex; flex-direction:column; flex:1; }
.bl-card h3 { font-family:'Open Sans',Arial,sans-serif; font-size:19px; line-height:1.35; font-weight:700; margin:8px 0 8px; color:#111; }
.bl-card h3 a { color:inherit; }
.bl-card h3 a:hover { color:var(--bl-dark); text-decoration:underline; }
.bl-card p { color:#555; font-size:14.5px; line-height:1.6; margin:0 0 12px; }
.bl-card .bl-meta { margin-top:auto; }
.bl-card-featured { flex-direction:row; }
.bl-card-featured .bl-card-img { aspect-ratio:auto; flex:0 0 48%; min-height:260px; }
.bl-card-featured h3 { font-size:26px; }

.bl-tag { display:inline-block; background:#eaf3f2; color:var(--bl-dark); font-size:11.5px; font-weight:700;
          text-transform:uppercase; letter-spacing:.5px; padding:4px 10px; border-radius:20px; }
.bl-tag:hover { background:var(--bl-accent); color:#000; }
.bl-meta { font-size:12.5px; color:var(--bl-muted); display:flex; flex-wrap:wrap; gap:6px; }

/* Pagination */
.bl-pagination { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin-top:35px; }
.bl-pagination a, .bl-pagination span { min-width:40px; height:40px; padding:0 12px; display:inline-flex; align-items:center; justify-content:center;
          border:1px solid var(--bl-line); border-radius:8px; font-size:14px; color:#222; background:#fff; }
.bl-pagination a:hover { background:var(--bl-dark); color:#fff; border-color:var(--bl-dark); }
.bl-pagination .current { background:var(--bl-dark); color:#fff; border-color:var(--bl-dark); font-weight:700; }
.bl-pagination .gap { border:none; background:none; min-width:auto; }

/* Sidebar */
.bl-sidebar { position:sticky; top:80px; }
.bl-widget { background:#fff; border:1px solid var(--bl-line); border-radius:12px; padding:20px; margin-bottom:20px; }
.bl-widget-title { font-family:'Open Sans',Arial,sans-serif; font-size:15px; font-weight:800; text-transform:uppercase; letter-spacing:.6px;
                   color:var(--bl-dark); margin:0 0 14px; padding-bottom:10px; border-bottom:2px solid var(--bl-accent); }
.bl-search { display:flex; }
.bl-search input { flex:1; min-width:0; border:1px solid #cfd6d6; border-right:0; border-radius:8px 0 0 8px; padding:10px 12px; font-size:14px; outline:0; }
.bl-search input:focus { border-color:var(--bl-dark); }
.bl-search button { width:48px !important; border-radius:0 8px 8px 0 !important; background:var(--bl-dark) !important; color:#fff; padding:0 !important; font-size:15px; }
.bl-cat-list, .bl-recent { list-style:none; margin:0; padding:0; }
.bl-cat-list li a { display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px solid #f1f1f1; color:#333; font-size:14.5px; }
.bl-cat-list li:last-child a { border-bottom:0; }
.bl-cat-list li a:hover, .bl-cat-list li.active a { color:var(--bl-dark); font-weight:700; }
.bl-count { background:#f2f4f4; border-radius:20px; padding:0 9px; font-size:12px; line-height:22px; color:var(--bl-muted); }
.bl-recent li { margin-bottom:14px; }
.bl-recent li:last-child { margin-bottom:0; }
.bl-recent a { display:flex; gap:12px; align-items:center; color:#222; }
.bl-recent img { width:68px; height:56px; object-fit:cover; border-radius:8px; flex-shrink:0; }
.bl-recent strong { display:block; font-size:13.5px; line-height:1.35; }
.bl-recent a:hover strong { color:var(--bl-dark); text-decoration:underline; }
.bl-recent small { color:var(--bl-muted); font-size:12px; }

/* Article */
.bl-article { background:#fff; border:1px solid var(--bl-line); border-radius:12px; padding:32px; }
.bl-article-head h1 { font-family:'Open Sans',Arial,sans-serif; font-size:34px; line-height:1.25; font-weight:800; color:#111; margin:14px 0 12px; }
.bl-article-img { width:100%; max-height:440px; object-fit:cover; border-radius:10px; margin:22px 0 4px; }
.bl-post-content { font-size:17px; line-height:1.85; color:#2b2b2b; margin-top:22px; overflow-wrap:break-word; }
.bl-post-content h1, .bl-post-content h2, .bl-post-content h3, .bl-post-content h4 { font-family:'Open Sans',Arial,sans-serif; color:#111; font-weight:700; line-height:1.3; margin:1.6em 0 .6em; }
.bl-post-content h1, .bl-post-content h2 { font-size:26px; }
.bl-post-content h3 { font-size:21px; color:#111; }
.bl-post-content p { margin:0 0 1.2em; }
.bl-post-content ul, .bl-post-content ol { margin:0 0 1.2em; padding-left:1.6em; }
.bl-post-content li { margin-bottom:.4em; }
.bl-post-content a { color:#0b6b66; text-decoration:underline; }
.bl-post-content img { max-width:100%; height:auto; border-radius:8px; margin:1em 0; }
.bl-post-content blockquote { border-left:4px solid var(--bl-accent); background:#faf8e6; padding:14px 18px; margin:1.4em 0; font-style:italic; }
.bl-post-content table { width:100%; border-collapse:collapse; margin:1.2em 0; display:block; overflow-x:auto; }
.bl-post-content th, .bl-post-content td { border:1px solid var(--bl-line); padding:8px 12px; }

.bl-share { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:30px; padding-top:20px; border-top:1px solid var(--bl-line); font-weight:700; font-size:14px; }
.bl-share a { background:var(--bl-dark); color:#fff; padding:7px 14px; border-radius:20px; font-size:13px; font-weight:600; }
.bl-share a:hover { background:var(--bl-accent); color:#000; }

.bl-prevnext { display:grid; grid-template-columns:1fr 1fr; gap:15px; margin-top:25px; }
.bl-prevnext small { display:block; color:var(--bl-muted); text-transform:uppercase; font-size:11px; letter-spacing:.5px; }
.bl-prevnext a { color:var(--bl-dark); font-weight:700; font-size:14.5px; }
.bl-prevnext a:hover { text-decoration:underline; }

.bl-related { margin-top:35px; }
.bl-section-title { font-family:'Open Sans',Arial,sans-serif; font-size:20px; font-weight:800; color:var(--bl-dark); margin-bottom:16px; }
.bl-related .bl-card h3 { font-size:15px; }

.bl-empty { text-align:center; padding:60px 20px; background:#fff; border:1px dashed #cfd6d6; border-radius:12px; }
.bl-empty h1, .bl-empty h3 { font-family:'Open Sans',Arial,sans-serif; font-size:24px; color:#111; margin-bottom:8px; }
.bl-btn { display:inline-block; margin-top:14px; background:var(--bl-red); color:#fff; padding:10px 24px; border-radius:50px; font-weight:600; }
.bl-btn:hover { box-shadow:1px 1px 6px #000; color:#fff; }

@media (max-width: 991px) { .bl-sidebar { position:static; } .bl-card-featured { flex-direction:column; } .bl-card-featured .bl-card-img { flex:none; aspect-ratio:16/9; min-height:0; } }
@media (max-width: 575px) {
  .bl-hero { padding:95px 15px 35px; } .bl-hero h1 { font-size:42px; }
  .bl-article { padding:20px 16px; } .bl-article-head h1 { font-size:26px; } .bl-post-content { font-size:16px; }
  .bl-prevnext { grid-template-columns:1fr; } .bl-prevnext .text-end { text-align:left !important; }
}

/* ===== Navigation (blog_nav.php) ===== */
.bl-nav { background:#fff; border-bottom:1px solid var(--bl-line); box-shadow:0 2px 8px rgba(0,0,0,.05);
          position:sticky; top:0; z-index:1000; padding:0; }
.bl-nav .container { padding-top:6px; padding-bottom:6px; }
.bl-nav .navbar-nav { flex-wrap:wrap; }
.bl-nav .nav-link { font-family:'Montserrat','Open Sans',sans-serif; font-weight:600; font-size:14px; letter-spacing:.4px;
                    color:#222 !important; padding:16px 16px !important; position:relative; transition:color .2s; }
.bl-nav .nav-link::after { content:""; position:absolute; left:16px; right:16px; bottom:8px; height:3px; border-radius:3px;
                           background:var(--bl-accent); transform:scaleX(0); transition:transform .25s; }
.bl-nav .nav-link:hover { color:var(--bl-dark) !important; }
.bl-nav .nav-link:hover::after, .bl-nav .nav-item.active .nav-link::after { transform:scaleX(1); }
.bl-nav .nav-item.active .nav-link { color:var(--bl-dark) !important; font-weight:700; }

/* main.css styles every <button> as a full-width red pill; reset it for the toggler */
.bl-nav .navbar-toggler { width:auto; padding:6px 10px; background:#fff; border:1px solid #ccc; border-radius:6px; margin:6px 0; }
.bl-nav .navbar-toggler:hover { box-shadow:none; }
.bl-nav .navbar-toggler:focus { box-shadow:0 0 0 3px rgba(232,206,14,.5); }

.bl-nav-search input { border:1px solid #cfd6d6; border-radius:50px; padding:8px 16px; font-size:13.5px; width:190px; outline:0; transition:width .25s, border-color .2s; }
.bl-nav-search input:focus { border-color:var(--bl-dark); width:240px; }

@media (max-width: 991px) {
  .bl-nav .navbar-collapse { border-top:1px solid var(--bl-line); padding-bottom:12px; }
  .bl-nav .nav-link { padding:12px 6px !important; border-bottom:1px solid #f1f1f1; }
  .bl-nav .nav-link::after { display:none; }
  .bl-nav .nav-item.active .nav-link { border-left:4px solid var(--bl-accent); padding-left:12px !important; }
  .bl-nav-search { margin-top:12px; } .bl-nav-search input, .bl-nav-search input:focus { width:100%; }
}