/* ╔══════════════════════════════════════════════════════════════╗
   ║  blog.css — News-style Blog & Articles page                ║
   ╚══════════════════════════════════════════════════════════════╝ */

/* ─── Category Badge ─── */
.bl-cat { display: inline-block; padding: 4px 12px; border-radius: 30px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; background: var(--gl); color: var(--green); }
.bl-cat.gold   { background: #fef3e8; color: var(--gold); }
.bl-cat.red    { background: #fde8e8; color: var(--red); }
.bl-cat.blue   { background: #e8f0fe; color: #3a6fd8; }
.bl-cat.purple { background: #f3e8fe; color: #9b59b6; }

/* ─── Featured Article ─── */
.bl-featured { display: grid; grid-template-columns: 1.1fr 0.9fr; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 48px; }
.bl-feat-img { position: relative; min-height: 440px; }
.bl-feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-feat-body { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.bl-feat-body .bl-cat { margin-bottom: 14px; }
.bl-feat-body h2 { font-family: 'Playfair Display', serif; font-size: 1.75rem; line-height: 1.35; color: var(--dark); margin-bottom: 14px; }
.bl-meta { display: flex; align-items: center; gap: 14px; font-size: .75rem; color: var(--gray); margin-bottom: 14px; flex-wrap: wrap; }
.bl-meta i { color: var(--green); font-size: .7rem; }
.bl-feat-excerpt { font-size: .87rem; color: #555; line-height: 1.75; margin-bottom: 24px; }
.bl-author-row { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.bl-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #e8f5ee; flex-shrink: 0; }
.bl-aname { font-size: .78rem; font-weight: 700; color: var(--dark); display: block; }
.bl-arole { font-size: .72rem; color: var(--gray); display: block; }
.bl-read-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; background: var(--green); color: #fff; border: none; border-radius: 30px; font-size: .83rem; font-weight: 700; cursor: pointer; transition: all .2s; }
.bl-read-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ─── Blog Grid ─── */
.blog-grid { display: grid; gap: 24px; }
.blog-grid-2 { grid-template-columns: 1fr 1fr; }
.blog-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ─── Blog Card ─── */
.bl-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.bl-card:not(.bl-soon):hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(26,107,60,.13); }
.bl-thumb-wrap { height: 200px; overflow: hidden; position: relative; }
.bl-thumb-wrap:empty { display: none; }
.bl-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.bl-card:hover .bl-thumb-wrap img { transform: scale(1.05); }
.bl-cat-pos { position: absolute; top: 12px; left: 12px; }
/* When no image, show category inline in card body */
.bl-card-body .bl-cat-inline { display: inline-block; margin-bottom: 8px; }
.bl-card-body { padding: 20px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.bl-card-body h4 { font-family: 'Playfair Display', serif; font-size: .98rem; font-weight: 700; line-height: 1.45; margin: 10px 0 8px; color: var(--dark); }
.bl-excerpt { font-size: .79rem; color: #666; line-height: 1.65; margin-bottom: 16px; flex: 1; }
.bl-card-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #f3f3f3; padding-top: 13px; }
.bl-mini-author { display: flex; align-items: center; gap: 7px; }
.bl-av-sm { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid #e8f5ee; }
.bl-mini-author span { font-size: .71rem; font-weight: 600; color: var(--dark); }
.bl-card-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 13px; background: var(--gl); color: var(--green); border: none; border-radius: 20px; font-size: .73rem; font-weight: 700; cursor: pointer; transition: all .2s; white-space: nowrap; }
.bl-card-btn:hover { background: var(--green); color: #fff; }

/* ─── Coming Soon Card ─── */
.bl-soon { cursor: default; }
.bl-soon .bl-thumb-wrap img { filter: grayscale(.75); opacity: .65; }
.bl-soon-badge { position: absolute; top: 12px; right: 12px; background: rgba(15,25,15,.72); color: #fff; font-size: .63rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; letter-spacing: .5px; text-transform: uppercase; backdrop-filter: blur(4px); }
.bl-soon .bl-card-body h4 { color: #888; }
.bl-soon .bl-excerpt { color: #aaa; }

/* ─── Upcoming Section Divider ─── */
.blog-upcoming-header { display: flex; align-items: center; gap: 16px; margin: 52px 0 28px; }
.blog-upcoming-header h3 { font-size: .82rem; font-weight: 700; color: var(--gray); white-space: nowrap; text-transform: uppercase; letter-spacing: 1px; }
.blog-upcoming-header::after { content: ''; flex: 1; height: 1px; background: #e8e8e8; }

/* ─── Article Reading Modal ─── */
.art-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(5,20,10,.6); backdrop-filter: blur(5px); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 32px 16px 60px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.art-modal.open { opacity: 1; pointer-events: all; }
.art-pane { background: #fff; border-radius: 20px; max-width: 800px; width: 100%; position: relative; transform: translateY(28px); transition: transform .3s; overflow: hidden; margin: auto; }
.art-modal.open .art-pane { transform: translateY(0); }
.art-close { position: absolute; top: 14px; right: 14px; z-index: 20; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; border: none; font-size: .9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); transition: background .2s; }
.art-close:hover { background: rgba(0,0,0,.82); }
.art-hero { width: 100%; height: 340px; object-fit: cover; display: block; }
.art-inner { padding: 38px 52px 60px; }
.art-cat-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.art-date-lbl { font-size: .74rem; color: var(--gray); }
.art-inner h1 { font-family: 'Playfair Display', serif; font-size: 2.1rem; line-height: 1.3; color: var(--dark); margin-bottom: 20px; }
.art-byline { display: flex; align-items: center; gap: 12px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 14px 0; margin-bottom: 30px; }
.art-byline-av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.art-byline-name { font-weight: 700; font-size: .84rem; color: var(--dark); }
.art-byline-role { font-size: .73rem; color: var(--gray); }
.art-read-time { margin-left: auto; font-size: .73rem; color: var(--gray); background: var(--gl); padding: 5px 12px; border-radius: 20px; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.art-body { font-size: .93rem; line-height: 1.85; color: #333; }
.art-body p { margin-bottom: 18px; }
.art-body h2 { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--dark); margin: 32px 0 14px; border-left: 3px solid var(--green); padding-left: 14px; }
.art-body h3 { font-size: .97rem; font-weight: 700; color: var(--dark); margin: 24px 0 10px; }
.art-body ul, .art-body ol { padding-left: 22px; margin-bottom: 18px; }
.art-body li { margin-bottom: 8px; }
.art-pq { border-left: 4px solid var(--green); margin: 28px 0; padding: 16px 24px; background: var(--gl); font-size: 1rem; font-style: italic; font-family: 'Playfair Display', serif; color: var(--dark); border-radius: 0 10px 10px 0; }
.art-img { width: 100%; border-radius: 12px; margin: 24px 0 6px; object-fit: cover; max-height: 340px; display: block; }
.art-img-cap { text-align: center; font-size: .72rem; color: var(--gray); margin-bottom: 22px; font-style: italic; }
.art-share { display: flex; align-items: center; gap: 10px; margin-top: 36px; padding-top: 22px; border-top: 1px solid #eee; }
.art-share-lbl { font-size: .78rem; font-weight: 700; color: var(--gray); margin-right: 4px; }
.art-share a { width: 33px; height: 33px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .82rem; color: #fff; text-decoration: none; }
.art-share .s-fb { background: #1877f2; }
.art-share .s-wa { background: #25d366; }
.art-share .s-tw { background: #1da1f2; }

/* ─── Responsive ─── */
@media (max-width: 1024px) { .blog-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .bl-featured { grid-template-columns: 1fr; }
  .bl-feat-img { min-height: 240px; }
  .bl-feat-body { padding: 28px 24px; }
  .bl-feat-body h2 { font-size: 1.35rem; }
  .blog-grid-2, .blog-grid-3 { grid-template-columns: 1fr; }
  .art-inner { padding: 24px 22px 48px; }
  .art-inner h1 { font-size: 1.45rem; }
  .art-hero { height: 220px; }
  .art-modal { padding: 0; align-items: flex-start; }
  .art-pane { border-radius: 0; min-height: 100dvh; }
}
@media (max-width: 480px) {
  .bl-feat-body h2 { font-size: 1.18rem; }
  .art-inner { padding: 20px 16px 40px; }
  .art-inner h1 { font-size: 1.25rem; }
}

/* ─── Pagination ─── */
.blog-page { display: none; }
.blog-page.active { display: block; }
.blog-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 52px; flex-wrap: wrap; }
.pg-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px; border: 2px solid #ddd; background: #fff; border-radius: 30px; font-size: .82rem; font-weight: 700; color: var(--dark); cursor: pointer; transition: all .2s; font-family: 'Inter', sans-serif; }
.pg-btn:hover:not([disabled]) { border-color: var(--green); color: var(--green); }
.pg-btn[disabled] { opacity: .35; cursor: default; }
.pg-numbers { display: flex; gap: 6px; }
.pg-num { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #ddd; background: #fff; font-size: .83rem; font-weight: 700; color: var(--dark); cursor: pointer; transition: all .2s; font-family: 'Inter', sans-serif; display: flex; align-items: center; justify-content: center; }
.pg-num:hover:not(.active) { border-color: var(--green); color: var(--green); }
.pg-num.active { background: var(--green); border-color: var(--green); color: #fff; }
.pg-info { font-size: .76rem; color: var(--gray); white-space: nowrap; padding: 0 4px; }
@media (max-width: 480px) { .pg-info { width: 100%; text-align: center; order: -1; margin-bottom: 4px; } }
