/* ==========================================================
   Blog list page (blog.php). Classes start with "bl-"; the sidebar has its own css/blog-sidebar.css
   so blog-details.php keeps its own look. Brand: navy #1e3c62/#14294a · teal #03716f · orange #f6961a · gold #efb935
   ========================================================== */

/* ---------- Hero ---------- */
.bl-hero { position: relative; overflow: hidden; padding: 50px 0 64px; color: #fff; background: linear-gradient(115deg, #14294a 0%, #1e3c62 55%, #03716f 120%); }
.bl-hero:before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; }
.bl-hero-ring { position: absolute; right: -60px; top: -90px; width: 340px; height: 340px; border-radius: 50%; border: 50px solid rgba(246,150,26,.14); pointer-events: none; }
.bl-hero .container { position: relative; }
.bl-crumb { margin: 0 0 18px; padding: 0; list-style: none; font-size: 13px; color: #a9bbd0; }
.bl-crumb li { display: inline; }
.bl-crumb li + li:before { content: "/"; margin: 0 8px; color: rgba(255,255,255,.35); }
.bl-crumb a { color: #efb935; }
.bl-eyebrow { display: inline-block; margin-bottom: 12px; padding: 5px 14px; border-radius: 30px; border: 1px solid rgba(239,185,53,.45); background: rgba(255,255,255,.07);
  font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #efb935; }
.bl-eyebrow i { margin-right: 6px; }
.bl-hero h1 { margin: 0 0 12px; font-size: 40px; font-weight: 800; line-height: 1.2; color: #fff; text-transform: none; }
.bl-hero h1 span { color: #f6961a; }
.bl-hero p { max-width: 600px; margin: 0 0 26px; font-size: 16px; line-height: 1.75; color: #d3deea; }
.bl-search { position: relative; display: -webkit-flex; display: flex; max-width: 560px; padding: 6px; border-radius: 40px; background: #fff; box-shadow: 0 16px 36px rgba(0,0,0,.25); }
.bl-search > i { position: absolute; left: 22px; top: 50%; margin-top: -8px; color: #8a9bb0; font-size: 15px; }
.bl-search input { -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 14px 0 44px; border: 0; background: transparent; font-size: 15px; color: #1e3c62; outline: 0; }
.bl-search button { -webkit-flex: 0 0 auto; flex: 0 0 auto; padding: 0 26px; border: 0; border-radius: 30px; background: #f6961a; color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; transition: background .2s; }
.bl-search button:hover, .bl-search button:focus { background: #e0830b; }

/* ---------- Layout: both columns share one top and one bottom line ---------- */
.bl-page { padding: 60px 0 70px; background: #f7f4ef; }
.bl-row { display: -webkit-flex; display: flex; -webkit-align-items: stretch; align-items: stretch; }
.bl-row:before, .bl-row:after { display: none; }
.bl-main { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; }
.bl-main-single .bl-feature { -webkit-flex: 1 1 auto; flex: 1 1 auto; }      /* one post: card grows to the sidebar's height */

/* ---------- Shared post pieces ---------- */
.bl-img { position: relative; display: block; overflow: hidden; background: #eef3f7; }   /* light, so images with transparent edges blend in */
.bl-img img { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: -webkit-transform .5s ease, transform .5s ease; }
.bl-img-none { background: linear-gradient(135deg, #1e3c62, #03716f); display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.bl-img-none > i { font-size: 46px; color: rgba(255,255,255,.35); }
.bl-date { position: absolute; left: 16px; top: 16px; z-index: 2; width: 54px; padding: 7px 0 6px; border-radius: 12px; text-align: center; background: #fff; color: #1e3c62;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; line-height: 1.2; box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.bl-date strong { display: block; font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 800; letter-spacing: 0; color: #f6961a; }
.bl-tag { position: absolute; right: 16px; top: 16px; z-index: 2; padding: 5px 12px; border-radius: 20px; background: #f6961a; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.bl-body { position: relative; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; }
.bl-meta { margin: 0 0 10px; padding: 0; list-style: none; font-size: 12.5px; color: #7a8a9c; }
.bl-meta li { display: inline-block; margin-right: 16px; }
.bl-meta i { margin-right: 5px; color: #03716f; }
.bl-title { margin: 0 0 10px; font-weight: 800; line-height: 1.35; text-transform: none; }
.bl-title a { color: #1e3c62; text-decoration: none; background-image: linear-gradient(#f6961a, #f6961a); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .35s, color .2s; }
.bl-title a:hover, .bl-title a:focus { color: #03716f; background-size: 100% 2px; text-decoration: none; }
.bl-body p { margin: 0 0 16px; color: #5b6b7d; line-height: 1.75; }
.bl-more { margin-top: auto; -webkit-align-self: flex-start; align-self: flex-start; font-size: 13px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #f6961a; }
.bl-more i { margin-left: 6px; transition: margin .2s; }
.bl-more:hover, .bl-more:focus { color: #e0830b; text-decoration: none; }
.bl-more:hover i { margin-left: 11px; }

/* ---------- Featured (first) post ---------- */
.bl-feature { display: -webkit-flex; display: flex; min-height: 320px; margin-bottom: 30px; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 16px 40px rgba(30,60,98,.1); transition: box-shadow .3s, -webkit-transform .3s, transform .3s; }
.bl-feature:hover { -webkit-transform: translateY(-4px); transform: translateY(-4px); box-shadow: 0 24px 50px rgba(30,60,98,.16); }
.bl-feature .bl-img { -webkit-flex: 0 0 48%; flex: 0 0 48%; min-height: 260px; }
.bl-feature:hover .bl-img img { -webkit-transform: scale(1.06); transform: scale(1.06); }
.bl-feature .bl-body { -webkit-flex: 1 1 auto; flex: 1 1 auto; -webkit-justify-content: center; justify-content: center; padding: 30px 32px; }
.bl-feature .bl-title { font-size: 25px; }
.bl-feature .bl-more { margin-top: 6px; padding: 11px 22px; border-radius: 30px; background: #1e3c62; color: #fff; }
.bl-feature .bl-more:hover, .bl-feature .bl-more:focus { background: #f6961a; color: #fff; }

/* ---------- Grid of other posts (equal-height cards) ---------- */
.bl-grid { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 0 -15px; }
.bl-card { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; width: calc(50% - 30px); margin: 0 15px 30px; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(30,60,98,.08); transition: box-shadow .3s, -webkit-transform .3s, transform .3s; }
.bl-card:hover { -webkit-transform: translateY(-5px); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(30,60,98,.14); }
.bl-card .bl-img { height: 190px; }
.bl-card:hover .bl-img img { -webkit-transform: scale(1.07); transform: scale(1.07); }
.bl-card .bl-body { -webkit-flex: 1 1 auto; flex: 1 1 auto; padding: 22px 22px 24px; }
.bl-card .bl-title { font-size: 18px; }
.bl-card .bl-body p { font-size: 14.5px; }

/* ---------- Search result note + empty state ---------- */
.bl-result { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-justify-content: space-between; justify-content: space-between; -webkit-align-items: center; align-items: center;
  margin-bottom: 24px; padding: 14px 20px; border-radius: 12px; background: #fff; border-left: 4px solid #f6961a; color: #1e3c62; box-shadow: 0 6px 18px rgba(30,60,98,.06); }
.bl-result i { margin-right: 6px; color: #f6961a; }
.bl-result a { font-weight: 700; color: #03716f; }
.bl-empty { -webkit-flex: 1 1 auto; flex: 1 1 auto; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  padding: 60px 24px; border-radius: 18px; background: #fff; border: 2px dashed #dfe6ee; text-align: center; }
.bl-empty-ico { width: 76px; height: 76px; line-height: 76px; margin-bottom: 16px; border-radius: 50%; background: #fff3e2; color: #f6961a; font-size: 30px; }
.bl-empty h2 { margin: 0 0 8px; font-size: 24px; font-weight: 800; color: #1e3c62; }
.bl-empty p { margin: 0 0 18px; color: #7a8a9c; }

/* ---------- Pagination ---------- */
.bl-pager { margin-top: auto; padding-top: 6px; text-align: center; }
.bl-pager ul { display: inline-block; margin: 0; padding: 0; list-style: none; }
.bl-pager li { display: inline-block; margin: 0 4px; }
.bl-pager a { display: block; width: 42px; height: 42px; line-height: 42px; border-radius: 50%; background: #fff; color: #1e3c62; font-weight: 700; box-shadow: 0 4px 12px rgba(30,60,98,.08); transition: all .2s; }
.bl-pager a:hover, .bl-pager a:focus { background: #1e3c62; color: #fff; text-decoration: none; }
.bl-pager .active a { background: #f6961a; color: #fff; box-shadow: 0 8px 18px rgba(246,150,26,.35); }
.bl-pager .disabled a { opacity: .4; pointer-events: none; }

/* ---------- Buttons ---------- */
.bl-btn { display: inline-block; padding: 12px 24px; border-radius: 30px; background: #f6961a; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; text-decoration: none; transition: background .2s; }
.bl-btn i { margin-left: 6px; }
.bl-btn:hover, .bl-btn:focus { background: #e0830b; color: #fff; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) { .bl-feature .bl-title { font-size: 22px; } }
@media (max-width: 991px) {
  .bl-row { display: block; }
  .bl-main { margin-bottom: 0; }
}
@media (max-width: 767px) {
  .bl-hero { padding: 36px 0 44px; }
  .bl-hero h1 { font-size: 28px; }
  .bl-search button { padding: 0 16px; }
  .bl-page { padding: 40px 0 50px; }
  .bl-feature { display: block; min-height: 0; }
  .bl-feature .bl-img { height: 210px; min-height: 0; }
  .bl-feature .bl-body { padding: 22px 20px 24px; }
  .bl-grid { display: block; margin: 0; }
  .bl-card { width: auto; margin: 0 0 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .bl-feature, .bl-card, .bl-img img, .bl-title a { transition: none; }
}
