/* ============================================================
   BLOG — css/blog.css
   Listing page + Detail page
   ============================================================ */

/* ── FEATURED POST SECTION ──────────────────────────────── */
.blog-featured-section {
  padding: 52px 0 0;
  background: var(--bg-soft);
}

.blog-featured-label {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.blog-featured-label::before {
  content: '';
  width: 28px; height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.blog-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.14);
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.blog-featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 80px rgba(0,0,0,.2);
}

.blog-featured-img {
  position: relative;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.blog-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.blog-featured-card:hover .blog-featured-img img {
  transform: scale(1.06);
}

.blog-featured-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5,13,31,.4) 0%, transparent 60%);
}

.blog-featured-superscript {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 2;
  padding: 5px 14px;
  background: var(--orange);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-featured-body {
  padding: 44px 48px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--orange);
  margin-bottom: 14px;
}

.blog-featured-title {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.22;
  letter-spacing: -.025em;
  margin-bottom: 14px;
}

.blog-featured-excerpt {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 20px;
}

.blog-featured-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.blog-featured-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-featured-meta i { color: var(--orange); }

.blog-featured-author {
  display: flex;
  align-items: center;
  gap: 9px;
}

.blog-featured-author img {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.blog-featured-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  background: var(--grad-brand);
  color: #fff;
  border-radius: 50px;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
  transition: filter .2s, transform .2s;
}

.blog-featured-read:hover {
  filter: brightness(1.08);
  transform: translateX(4px);
}

/* ── MAIN SECTION ───────────────────────────────────────── */
.blog-main-section {
  padding: 48px 0 88px;
  background: var(--bg-soft);
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 296px;
  gap: 36px;
  align-items: start;
}

/* ── CATEGORY FILTERS ───────────────────────────────────── */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.blog-filter-btn {
  padding: 7px 18px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: #fff;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .22s;
  font-family: var(--font);
}

.blog-filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.blog-filter-btn.active { border-color: var(--orange); background: var(--orange); color: #fff; }

/* ── TOOLBAR ────────────────────────────────────────────── */
.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.blog-count {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── BLOG GRID ──────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 52px rgba(0,0,0,.13);
  border-color: transparent;
}

.blog-card-img {
  position: relative;
  height: 186px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}

.blog-card:hover .blog-card-img img { transform: scale(1.08); }

.blog-card-cat {
  position: absolute;
  top: 11px; left: 11px;
  padding: 3px 10px;
  background: var(--orange);
  color: #fff;
  font-size: .64rem;
  font-weight: 800;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.blog-card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .71rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.blog-card-meta span { display: flex; align-items: center; gap: 4px; }
.blog-card-meta i { color: var(--orange); }

.blog-card-title {
  font-family: var(--font-head);
  font-size: .93rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.38;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}

.blog-card:hover .blog-card-title { color: var(--orange); }

.blog-card-excerpt {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .74rem;
  font-weight: 600;
  color: var(--text);
}

.blog-card-author img {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-card-read {
  font-size: .75rem;
  font-weight: 700;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}

.blog-card:hover .blog-card-read { gap: 8px; }

/* ── LOAD MORE ──────────────────────────────────────────── */
.blog-loadmore { text-align: center; margin-top: 36px; }

.btn-load-more {
  padding: 12px 34px;
  border: 2px solid var(--orange);
  background: transparent;
  color: var(--orange);
  border-radius: 50px;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s;
}

.btn-load-more:hover { background: var(--orange); color: #fff; }

/* ── SIDEBAR ────────────────────────────────────────────── */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--nav-height) + 16px);
}

.blog-widget {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
  border: 1px solid var(--border);
}

.widget-title {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title i { color: var(--orange); }

/* Search widget */
.blog-search-wrap { position: relative; }

.blog-search-wrap input {
  width: 100%;
  padding: 9px 36px 9px 12px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: .82rem;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}

.blog-search-wrap input:focus { border-color: var(--orange); }

.blog-search-wrap > i {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: .78rem;
  pointer-events: none;
}

/* Category widget */
.widget-cat-list { list-style: none; margin: 0; padding: 0; }

.widget-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .18s, color .18s;
  font-size: .82rem;
  color: var(--text);
  font-weight: 500;
}

.widget-cat-item:hover, .widget-cat-item.active {
  background: #fff7f3;
  color: var(--orange);
}

.widget-cat-count {
  font-size: .7rem;
  background: #f1f5ff;
  color: var(--muted);
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 600;
}

.widget-cat-item.active .widget-cat-count {
  background: rgba(255,107,43,.12);
  color: var(--orange);
}

/* Recent posts widget */
.widget-recent-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}

.widget-recent-item {
  display: flex;
  gap: 10px;
  text-decoration: none;
  align-items: flex-start;
}

.widget-recent-img {
  width: 54px; height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.widget-recent-title {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}

.widget-recent-item:hover .widget-recent-title { color: var(--orange); }

.widget-recent-date {
  font-size: .69rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.widget-recent-date i { color: var(--orange); }

/* Tags widget */
.widget-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.widget-tag {
  padding: 4px 12px;
  background: var(--bg-soft);
  color: var(--muted);
  border-radius: 50px;
  font-size: .73rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  border: 1px solid var(--border);
}

.widget-tag:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* CTA widget */
.blog-widget-cta {
  background: var(--grad-brand);
  color: #fff;
  text-align: center;
  border-radius: 14px;
  padding: 28px 20px;
  border: none;
}

.blog-widget-cta i { font-size: 2rem; margin-bottom: 10px; display: block; opacity: .9; }
.blog-widget-cta h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.blog-widget-cta p { font-size: .8rem; opacity: .82; margin-bottom: 18px; }

.blog-widget-cta .btn {
  background: #fff;
  color: var(--orange);
  padding: 9px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .82rem;
  text-decoration: none;
  display: inline-block;
  transition: transform .2s, box-shadow .2s;
}

.blog-widget-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* ── NO RESULTS ─────────────────────────────────────────── */
.blog-no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.blog-no-results i { font-size: 2.5rem; opacity: .35; margin-bottom: 12px; display: block; }
.blog-no-results h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.blog-no-results p { font-size: .85rem; }

/* ============================================================
   BLOG DETAIL PAGE
   ============================================================ */

/* Hero */
.bd-hero {
  position: relative;
  height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.bd-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 8s ease-out;
}

.bd-hero-img.loaded { transform: scale(1); }

.bd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(5,13,31,.25) 0%,
    rgba(5,13,31,.5)  40%,
    rgba(5,13,31,.88) 100%);
}

.bd-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 48px;
  color: #fff;
}

/* Breadcrumb (reuse td-breadcrumb) */
.td-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .76rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 14px;
}

.td-breadcrumb a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s;
}

.td-breadcrumb a:hover { color: #fff; }
.td-breadcrumb i { font-size: .5rem; opacity: .6; }

.bd-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--orange);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 14px;
}

.bd-hero-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.03em;
  margin-bottom: 18px;
  max-width: 800px;
}

.bd-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: .78rem;
  color: rgba(255,255,255,.68);
}

.bd-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bd-meta-item i { color: var(--orange-l); }

.bd-meta-author {
  display: flex;
  align-items: center;
  gap: 9px;
}

.bd-meta-author img {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  object-fit: cover;
}

/* BD Layout */
.bd-layout {
  display: grid;
  grid-template-columns: 1fr 296px;
  gap: 36px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 88px;
}

.bd-sidebar { position: sticky; top: calc(var(--nav-height) + 16px); }

/* Article */
.bd-article {
  background: #fff;
  border-radius: 18px;
  padding: 44px 48px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  line-height: 1.82;
  color: #2c3e52;
  font-size: .93rem;
  border: 1px solid var(--border);
}

.bd-article h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 36px 0 12px;
  line-height: 1.22;
  letter-spacing: -.02em;
}

.bd-article h2:first-child { margin-top: 0; }

.bd-article h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 26px 0 10px;
}

.bd-article p { margin: 0 0 16px; }
.bd-article p:last-child { margin-bottom: 0; }

.bd-article ul, .bd-article ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.bd-article ul li, .bd-article ol li { margin-bottom: 7px; }

.bd-article a { color: var(--orange); text-decoration: underline; }

.bd-article blockquote {
  margin: 28px 0;
  padding: 22px 26px;
  background: linear-gradient(135deg, #fff8f5, #fff2eb);
  border-left: 4px solid var(--orange);
  border-radius: 0 14px 14px 0;
  font-style: italic;
  font-size: .98rem;
  color: var(--text);
  line-height: 1.72;
}

.bd-article blockquote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: .78rem;
  font-weight: 700;
  color: var(--orange);
}

.bd-article .article-img {
  width: 100%;
  border-radius: 14px;
  margin: 26px 0;
  object-fit: cover;
  max-height: 420px;
}

.bd-article .article-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 26px 0;
}

.bd-article .article-img-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.bd-article .tip-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 22px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.bd-article .tip-box i {
  color: #16a34a;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.bd-article .tip-box p { margin: 0; font-size: .85rem; }

.bd-article .info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 22px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.bd-article .info-box i {
  color: #2563eb;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.bd-article .info-box p { margin: 0; font-size: .85rem; }

/* Tags */
.bd-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.bd-tag {
  padding: 4px 13px;
  background: var(--bg-soft);
  color: var(--muted);
  border-radius: 50px;
  font-size: .73rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all .2s;
}

.bd-tag:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* Author card */
.bd-author-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 34px;
  margin-top: 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  display: flex;
  gap: 22px;
  align-items: flex-start;
  border: 1px solid var(--border);
}

.bd-author-img {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  flex-shrink: 0;
}

.bd-author-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}

.bd-author-role {
  font-size: .74rem;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 8px;
}

.bd-author-bio {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Share */
.bd-share-section {
  background: #fff;
  border-radius: 18px;
  padding: 20px 28px;
  margin-top: 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border: 1px solid var(--border);
}

.bd-share-label {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.bd-share-btns { display: flex; gap: 8px; }

.bd-share-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
  color: #fff;
  text-decoration: none;
  transition: transform .2s, filter .2s;
}

.bd-share-btn:hover { transform: translateY(-3px); filter: brightness(1.1); }
.bd-share-btn.facebook  { background: #1877f2; }
.bd-share-btn.twitter   { background: #1da1f2; }
.bd-share-btn.whatsapp  { background: #25d366; }
.bd-share-btn.linkedin  { background: #0a66c2; }
.bd-share-btn.copy-link { background: var(--orange); cursor: pointer; border: none; }

/* Related posts */
.bd-related { margin-top: 44px; }

.bd-related-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bd-related-title::before {
  content: '';
  width: 4px; height: 22px;
  background: var(--orange);
  border-radius: 3px;
  flex-shrink: 0;
}

.bd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; }

  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .blog-widget-cta { grid-column: span 2; }

  .bd-layout { grid-template-columns: 1fr; }

  .bd-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .bd-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .blog-featured-card { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 240px; }
  .blog-featured-body { padding: 28px 24px; }

  .blog-grid { grid-template-columns: 1fr; }

  .bd-hero { height: 400px; }
  .bd-hero-title { font-size: 1.65rem; }
  .bd-article { padding: 24px 20px; }
  .bd-author-card { padding: 22px 20px; flex-direction: column; align-items: center; text-align: center; }

  .bd-sidebar {
    grid-template-columns: 1fr;
  }
  .blog-widget-cta { grid-column: auto; }
  .bd-related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .blog-featured-body { padding: 22px 18px; }
  .blog-card-body { padding: 16px; }
  .blog-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .bd-hero { height: 340px; }
  .bd-hero-title { font-size: 1.45rem; }
  .bd-article { padding: 18px 14px; }
  .bd-article .article-img-grid { grid-template-columns: 1fr; }
  .bd-article .article-img-grid img { height: 180px; }
}
