/* ── Blog List ─────────────────────────────────────── */
.ag-bl__hero { text-align: center; padding-top: 80px; padding-bottom: 80px; }
.ag-bl__hero-title { font-size: clamp(36px, 6vw, 64px); font-weight: 700; letter-spacing: -2px; margin: 16px 0 20px; }
.ag-bl__hero-sub   { font-size: 18px; color: var(--fg-secondary); max-width: 520px; margin: 0 auto; }

/* Search */
.ag-bl__search-wrap  { max-width: 1200px; margin: 0 auto; padding: 0 40px 48px; }
.ag-bl__search-inner { position: relative; display: inline-flex; align-items: center; width: 100%; max-width: 420px; }
.ag-bl__search-icon  { position: absolute; left: 14px; color: var(--fg-secondary); pointer-events: none; }
.ag-bl__search {
  width: 100%; padding: 12px 40px 12px 40px;
  border: 1px solid var(--border-default); border-radius: 8px;
  font-size: 15px; font-family: inherit;
  background: var(--bg-page); color: var(--fg-primary);
  transition: border-color 180ms, box-shadow 180ms;
}
.ag-bl__search:focus { outline: none; border-color: var(--fg-primary); box-shadow: 0 0 0 3px rgba(9,9,11,.08); }
.ag-bl__search-clear {
  position: absolute; right: 12px; background: none; border: none;
  font-size: 18px; color: var(--fg-secondary); cursor: pointer; line-height: 1; padding: 2px 4px;
}
.ag-bl__search-clear:hover { color: var(--fg-primary); }
.ag-bl__search-count { margin-top: 8px; font-size: 13px; color: var(--fg-secondary); }

/* Featured */
.ag-bl__featured { padding-top: 0; }
.ag-bl__feat-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  cursor: pointer; border: 1px solid var(--border-default); border-radius: 16px;
  overflow: hidden; transition: box-shadow 240ms;
}
.ag-bl__feat-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.ag-bl__feat-img img { width: 100%; height: 460px; object-fit: cover; display: block; }
.ag-bl__feat-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.ag-bl__feat-labels { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ag-bl__feat-title   { font-size: clamp(22px, 2.8vw, 34px); font-weight: 700; letter-spacing: -.8px; margin: 0 0 16px; line-height: 1.2; }
.ag-bl__feat-excerpt { font-size: 15px; color: var(--fg-secondary); line-height: 1.65; margin: 0; flex-grow: 1; }
.ag-bl__feat-btn { margin-top: 28px; align-self: flex-start; }

/* Featured badge */
.ag-bl__featured-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
  background: var(--fg-primary); color: var(--bg-page);
}

/* Shared: category label + meta */
.ag-bl__cat  { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--fg-secondary); }
.ag-bl__meta { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--fg-secondary); margin-top: 14px; }
.ag-bl__dot  { opacity: .35; }

/* Grid */
.ag-bl__grid-section { padding-top: 64px; }
.ag-bl__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ag-bl__empty { color: var(--fg-secondary); text-align: center; padding: 60px 0; font-size: 15px; }

/* Card */
.ag-bl__card {
  cursor: pointer; border: 1px solid var(--border-default); border-radius: 12px;
  overflow: hidden; transition: transform 240ms, box-shadow 240ms;
  background: var(--bg-page); display: flex; flex-direction: column;
}
.ag-bl__card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.07); }
.ag-bl__card-img img  { width: 100%; height: 210px; object-fit: cover; display: block; }
.ag-bl__card-body     { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.ag-bl__card-title    { font-size: 17px; font-weight: 700; margin: 8px 0 10px; line-height: 1.35; color: var(--fg-primary); }
.ag-bl__card-excerpt  {
  font-size: 13px; color: var(--fg-secondary); line-height: 1.55; margin: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Blog Detail ────────────────────────────────────── */
.ag-bd__topnav { max-width: 760px; margin: 0 auto; padding: 24px 20px 0; }
.ag-bd__back-btn {
  background: none; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--fg-secondary);
  padding: 6px 0; font-family: inherit;
  transition: color 160ms;
}
.ag-bd__back-btn:hover { color: var(--fg-primary); }

.ag-bd__header { padding: 48px 20px 56px; text-align: center; }
.ag-bd__header-inner { max-width: 760px; margin: 0 auto; }
.ag-bd__title  { font-size: clamp(28px, 4.5vw, 48px); font-weight: 700; letter-spacing: -1.5px; margin: 12px 0 20px; line-height: 1.15; }
.ag-bd__meta   { justify-content: center; }

.ag-bd__cover { width: 100%; max-height: 500px; overflow: hidden; }
.ag-bd__cover img { width: 100%; max-height: 500px; object-fit: cover; display: block; }

/* Content */
.ag-bd__body { max-width: 700px; margin: 60px auto; padding: 0 20px; }

.ag-bd__content { font-size: 17px; line-height: 1.8; color: var(--fg-primary); }
.ag-bd__content h2 {
  font-size: 24px; font-weight: 700; letter-spacing: -.4px;
  margin: 48px 0 16px; color: var(--fg-primary); line-height: 1.25;
}
.ag-bd__content h3 {
  font-size: 18px; font-weight: 700;
  margin: 32px 0 12px; color: var(--fg-primary);
}
.ag-bd__content p  { margin: 0 0 20px; color: var(--fg-secondary); }
.ag-bd__content ul { margin: 0 0 20px; padding-left: 24px; color: var(--fg-secondary); }
.ag-bd__content li { margin-bottom: 8px; line-height: 1.6; }
.ag-bd__content strong { color: var(--fg-primary); font-weight: 600; }

/* CTA block */
.ag-bd__cta { background: var(--fg-primary); color: var(--bg-page); padding: 80px 20px; text-align: center; }
.ag-bd__cta-inner  { max-width: 560px; margin: 0 auto; }
.ag-bd__cta-title  { font-size: clamp(24px, 3.5vw, 38px); font-weight: 700; letter-spacing: -1px; margin: 0 0 12px; }
.ag-bd__cta-sub    { font-size: 16px; opacity: .7; margin: 0 0 28px; }

/* Related */
.ag-bd__related { padding-top: 80px; padding-bottom: 80px; }
.ag-bd__related-title { font-size: 26px; font-weight: 700; letter-spacing: -.4px; margin: 0 0 36px; }
.ag-bd__related-grid  { grid-template-columns: repeat(3, 1fr); }

/* Back link at bottom */
.ag-bd__back { padding: 32px 20px 48px; text-align: center; }

/* 404 */
.ag-bd__notfound { text-align: center; padding: 100px 20px; }
.ag-bd__notfound h2 { font-size: 28px; font-weight: 700; margin: 0 0 12px; }
.ag-bd__notfound p  { color: var(--fg-secondary); margin: 0 0 28px; }

/* Sticky CTA */
.ag-bd__sticky {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  padding: 16px 24px;
  background: var(--bg-page);
  border-top: 1px solid var(--border-default);
  box-shadow: 0 -4px 24px rgba(0,0,0,.08);
  transform: translateY(100%);
  transition: transform 300ms ease;
}
.ag-bd__sticky.is-visible { transform: translateY(0); }
.ag-bd__sticky-label { font-size: 14px; font-weight: 600; color: var(--fg-primary); }
.ag-bd__sticky-btn   { flex-shrink: 0; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .ag-bl__feat-card { grid-template-columns: 1fr; }
  .ag-bl__feat-body { padding: 32px; }
  .ag-bl__feat-img img { height: 320px; }
  .ag-bl__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .ag-bd__related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .ag-bl__hero { padding-top: 48px; padding-bottom: 48px; }
  .ag-bl__search-wrap { padding: 0 20px 32px; }
  .ag-bl__search-inner { max-width: 100%; }
  .ag-bl__feat-body { padding: 24px; }
  .ag-bl__feat-img img { height: 220px; }
  .ag-bl__grid { grid-template-columns: 1fr; gap: 16px; }
  .ag-bd__cover { max-height: 260px; }
  .ag-bd__cover img { max-height: 260px; }
  .ag-bd__body { margin: 36px auto; }
  .ag-bd__content { font-size: 16px; }
  .ag-bd__content h2 { font-size: 20px; margin: 36px 0 12px; }
  .ag-bd__content h3 { font-size: 17px; }
  .ag-bd__cta { padding: 48px 20px; }
  .ag-bd__related { padding: 48px 20px; }
  .ag-bd__related-grid { grid-template-columns: 1fr; }
  .ag-bd__sticky { gap: 12px; padding: 12px 16px; }
  .ag-bd__sticky-label { display: none; }
}
