/* ── Font & variables ── */
.author-wrap, .author-wrap * { font-family: 'Be Vietnam Pro', sans-serif; box-sizing: border-box; }

/* ── Override GP container ── */
body.author-full-width .site-content > .grid-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.author-full-width .content-area {
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* ══ PAGE HERO ══ */
.author-hero {
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(14,42,71,0.97) 0%, rgba(22,59,95,0.90) 55%, rgba(212,146,42,0.15) 100%),
    url('http://localhost/bfood247/wp-content/uploads/2026/03/kho-cung-cap-dau-co-tinh-luyen.webp') center/cover no-repeat;
  display: flex; align-items: flex-end;
  padding: 80px 48px 0;
  position: relative; overflow: hidden;
  margin-left: calc(-50vw + 50%) !important;
  width: 100vw !important;
}
.author-hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,146,42,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.author-hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  position: relative; z-index: 2;
}

/* Breadcrumb */
.author-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.author-breadcrumb a { color: rgba(255,255,255,0.5); font-size: 13px; text-decoration: none; transition: color 0.2s; }
.author-breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.author-breadcrumb span { color: rgba(255,255,255,0.3); font-size: 13px; }
.author-breadcrumb strong { color: var(--gold-light); font-size: 13px; font-weight: 500; }

/* Author hero card */
.author-hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,146,42,0.25);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  backdrop-filter: blur(10px);
  padding: 36px 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px; align-items: center;
}
.author-avatar-wrap { position: relative; flex-shrink: 0; }
.author-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-light), var(--gold));
  display: flex; align-items: center; justify-content: center; font-size: 44px;
  border: 4px solid rgba(212,146,42,0.5);
  box-shadow: 0 0 0 6px rgba(212,146,42,0.12);
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-verified {
  position: absolute; bottom: 4px; right: 4px;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  border: 3px solid rgba(14,42,71,0.9);
}
.author-dept-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(212,146,42,0.15); border: 1px solid rgba(212,146,42,0.35);
  color: var(--gold-light); padding: 4px 14px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 10px;
}
.author-dept-tag::before { content: ''; width: 6px; height: 6px; background: var(--gold-light); border-radius: 50%; }
.author-hero-name {
  font-family: 'Be Vietnam Pro', serif;
  font-size: clamp(28px, 3.5vw, 40px); font-weight: 900;
  color: #fff; line-height: 1.1; margin-bottom: 10px;
}
.author-hero-desc { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.7; max-width: 520px; }
.author-hero-right { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.author-social-links { display: flex; gap: 8px; }
.author-social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 13px; text-decoration: none; font-weight: 700;
  transition: all 0.2s;
}
.author-social-link:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.author-post-count {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy); padding: 10px 20px; border-radius: 10px; text-align: center;
}
.author-post-count strong { display: block; font-family: 'Be Vietnam Pro', serif; font-size: 26px; line-height: 1; font-weight: 900; }
.author-post-count span { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

/* ══ E-E-A-T STRIP ══ */
.eeat-strip {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07); border-top: none;
  border-radius: 0 0 20px 20px;
  padding: 38px 68px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-bottom: 36px;
  margin-right: -48.1px;
  margin-left: -48.1px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.eeat-item {
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px;
  border-right: 1px solid rgba(0,0,0,0.07);
}
.eeat-item:first-child { padding-left: 0; }
.eeat-item:last-child { border-right: none; }
.eeat-icon {
  width: 42px; height: 42px; min-width: 42px;
  background: var(--gold-pale); border: 1px solid var(--border);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.eeat-label { font-size: 10px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 2px; }
.eeat-value { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.3; }

/* ══ ARCHIVE BODY ══ */
.archive-body { background: var(--white); padding: 0 48px 80px; }
.archive-container { max-width: 1200px; margin: 0 auto; }
.layout-cols { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }

/* ── Filter bar ── */
.filter-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 24px; padding: 14px 20px;
  background: #fff; border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.filter-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; white-space: nowrap; }
.filter-tab {
  padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(0,0,0,0.1); background: transparent; color: var(--text-muted);
  cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-block;
}
.filter-tab:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-pale); }
.filter-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── Section label ── */
.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3.5px; margin-bottom: 16px;
}
.sec-label::before { content: ''; width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }

/* ── Featured post ── */
.featured-post {
  display: grid; grid-template-columns: 1.15fr 1fr;
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transition: all 0.3s; margin-bottom: 28px;
}
.featured-post:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.14); transform: translateY(-4px); }
.featured-thumb { position: relative; overflow: hidden; }
.featured-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 260px; transition: transform 0.5s; }
.featured-post:hover .featured-thumb img { transform: scale(1.04); }
.featured-thumb-placeholder {
  min-height: 260px; display: flex; align-items: center; justify-content: center; font-size: 64px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--gold) 100%);
}
.featured-badge {
  position: absolute; top: 16px; left: 16px;

}
.featured-content { padding: 32px 36px; display: flex; flex-direction: column; justify-content: center; }
.post-cat-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px;
  text-decoration: none; transition: all 0.2s; align-self: flex-start;
}
.cat-kien-thuc { background: rgba(14,42,71,0.08); color: var(--navy); border: 1px solid rgba(14,42,71,0.15); }
.cat-thi-truong { background: rgba(26,107,62,0.08); color: #1A6B3E; border: 1px solid rgba(26,107,62,0.2); }
.cat-san-pham { background: rgba(212,146,42,0.1); color: #A0720B; border: 1px solid rgba(212,146,42,0.25); }
.featured-content h2 {
  font-family: 'Be Vietnam Pro', serif;
  font-size: clamp(18px, 2vw, 24px); font-weight: 700;
  color: var(--navy); line-height: 1.35; margin-bottom: 12px;
}
.featured-content h2 a { text-decoration: none; color: inherit; transition: color 0.2s; }
.featured-content h2 a:hover { color: var(--gold); }
.post-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.post-meta-item { font-size: 12px; color: var(--text-muted); }
.btn-read-more {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: 8px;
  background: var(--navy); color: #fff !important;
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: all 0.25s; align-self: flex-start;
}
.btn-read-more:hover { background: var(--navy-light); transform: translateX(3px); }

/* ── Posts grid ── */
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.post-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.07); transition: all 0.3s;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 8px 32px rgba(0,0,0,0.10); border-color: var(--border); }
.card-thumb {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: flex; align-items: center; justify-content: center; font-size: 48px;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.post-card:hover .card-thumb img { transform: scale(1.06); }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-family: 'Be Vietnam Pro', serif;
  font-size: 15px; font-weight: 700; color: var(--navy);
  line-height: 1.45; margin-bottom: 10px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title a { text-decoration: none; color: inherit; transition: color 0.2s; }
.card-title a:hover { color: var(--gold); }
.card-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid rgba(0,0,0,0.06); margin-top: auto;
}
.card-date { font-size: 12px; color: var(--text-muted); }
.card-readmore { font-size: 12px; font-weight: 700; color: var(--gold); text-decoration: none; transition: all 0.2s; }
.card-readmore:hover { color: var(--navy); }

/* ── Pagination ── */
.pagination-wrap { display: flex; justify-content: center; margin-top: 40px; }
.pagination { display: flex; align-items: center; gap: 6px; }
.page-link {
  width: 38px; height: 38px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; text-decoration: none;
  border: 1px solid rgba(0,0,0,0.1); color: var(--text-muted); background: #fff;
  transition: all 0.2s; font-family: 'Be Vietnam Pro', sans-serif;
}
.page-link:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-pale); }
.page-link.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.page-link.is-nav { width: auto; padding: 0 14px; font-size: 12px; }

/* ══ SIDEBAR ══ */
.author-sidebar { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 90px; }
.sw { background: #fff; border-radius: 14px; border: 1px solid rgba(0,0,0,0.07); overflow: hidden; }
.sw-head { padding: 15px 20px; background: linear-gradient(135deg, var(--navy), var(--navy-mid)); }
.sw-head h4 { font-family: 'Be Vietnam Pro', serif; font-size: 14px; font-weight: 700; color: #fff; margin: 0; }
.sw-body { padding: 20px; }

/* Bio widget */
.bio-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--navy-light), var(--gold));
  display: flex; align-items: center; justify-content: center; font-size: 32px;
  border: 3px solid var(--gold-pale); overflow: hidden;
}
.bio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bio-name { font-family: 'Be Vietnam Pro', serif; font-size: 17px; font-weight: 700; color: var(--navy); text-align: center; margin-bottom: 4px; }
.bio-dept {
  display: block; text-align: center;
  background: var(--gold-pale); color: var(--gold);
  border: 1px solid var(--border); border-radius: 100px;
  padding: 3px 12px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px;
}
.bio-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; text-align: center; }
.bio-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.bio-stat { background: var(--off-white); border-radius: 8px; padding: 10px 6px; text-align: center; }
.bio-stat strong { display: block; font-family: 'Be Vietnam Pro', serif; font-size: 18px; font-weight: 900; color: var(--navy); }
.bio-stat span { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.bio-social { display: flex; gap: 8px; justify-content: center; }
.bio-social-link {
  width: 34px; height: 34px;
  background: var(--off-white); border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 13px; text-decoration: none; font-weight: 700;
  transition: all 0.2s;
}
.bio-social-link:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* Credentials */
.cred-list { display: flex; flex-direction: column; gap: 12px; }
.cred-item { display: flex; gap: 12px; align-items: flex-start; }
.cred-icon { width: 36px; height: 36px; min-width: 36px; background: var(--gold-pale); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.cred-name { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.cred-desc { font-size: 12px; color: var(--text-muted); }

/* Expertise tags */
.expertise-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.expertise-tag { padding: 5px 12px; border-radius: 100px; font-size: 12px; font-weight: 600; background: var(--gold-pale); color: var(--gold); border: 1px solid var(--border); }

/* Cat list */
.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-list li a { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border-radius: 8px; font-size: 13px; color: var(--text); font-weight: 500; text-decoration: none; transition: all 0.2s; }
.cat-list li a:hover { background: var(--gold-pale); color: var(--gold); }
.cat-count { background: rgba(0,0,0,0.07); color: var(--text-muted); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 100px; }

/* CTA widget */
.cta-widget { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); border-radius: 14px; padding: 22px 20px; text-align: center; border: 1px solid var(--border); position: relative; overflow: hidden; }
.cta-widget::before { content: ''; position: absolute; bottom: -30px; right: -30px; width: 120px; height: 120px; background: radial-gradient(circle, rgba(212,146,42,0.14), transparent 70%); }
.cta-widget h4 { font-family: 'Be Vietnam Pro', serif; color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 8px; position: relative; z-index: 1; }
.cta-widget p { color: rgba(255,255,255,0.55); font-size: 12.5px; line-height: 1.6; margin-bottom: 14px; position: relative; z-index: 1; }
.cta-widget-btn { display: block; padding: 10px 18px; border-radius: 8px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--navy) !important; font-size: 12.5px; font-weight: 700; text-decoration: none; transition: all 0.25s; position: relative; z-index: 1; }
.cta-widget-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212,146,42,0.4); }

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
  .author-hero-card { grid-template-columns: auto 1fr; }
  .author-hero-right { display: none; }
  .eeat-strip { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 20px 24px; }
  .eeat-item { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.07); padding: 0 0 16px 0; }
  .eeat-item:nth-child(3), .eeat-item:nth-child(4) { border-bottom: none; }
  .layout-cols { grid-template-columns: 1fr; }
  .author-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .author-hero { padding: 60px 20px 0; }
  .author-hero-card { grid-template-columns: 1fr; text-align: center; padding: 28px 24px; }
  .author-avatar-wrap { margin: 0 auto; }
  .author-dept-tag { justify-content: center; }
  .archive-body { padding: 0 20px 60px; }
  .eeat-strip { padding: 16px 20px; }
  .featured-post { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .author-sidebar { grid-template-columns: 1fr; }
}
