/* ============================================================
   LIVERMORE ACADEMY — CONTENT PAGES (SEO)
   Dùng cho: nhà đầu tư huyền thoại, tiểu sử, giới thiệu, chương trình học.
   Kế thừa biến màu + font từ site.css. Chỉ thêm class mới, không đè.
   ============================================================ */

/* ===== BREADCRUMB ===== */
.breadcrumb { font-size: 13px; color: var(--text-dim); padding: 22px 0 0; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--text-dim); margin: 0 8px; }

/* ===== PAGE HERO (nhẹ hơn hero trang chủ) ===== */
.page-hero { padding: 54px 0 40px; text-align: center; border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 50% -20%, rgba(212,175,55,.10) 0%, transparent 55%), var(--bg); }
.page-hero .eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 3px; font-size: 11px; font-weight: 600; margin-bottom: 14px; }
.page-hero h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(30px, 5vw, 50px); font-weight: 700; color: var(--gold-bright); line-height: 1.1; margin-bottom: 16px; }
.page-hero .lead { font-size: clamp(15px, 2vw, 19px); color: var(--text-muted); max-width: 680px; margin: 0 auto; }

/* ===== LEGEND GRID (trang tổng) ===== */
.legend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.legend-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px; transition: all .25s; text-decoration: none; color: inherit; }
.legend-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.medallion { width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; font-weight: 700; color: #1A1200;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dim)); margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(212,175,55,.25); flex-shrink: 0; }
.medallion.lg { width: 104px; height: 104px; font-size: 38px; }
/* Khi có ảnh avatar → medallion chứa ảnh tròn thay vì chữ (kế thừa kích thước từng vị trí) */
.medallion.has-img { background: none; padding: 0; overflow: hidden; border: 2px solid var(--gold-dim); }
.medallion.has-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.lc-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; font-weight: 700; color: var(--gold-bright); line-height: 1.15; }
.lc-years { font-size: 12.5px; color: var(--text-dim); margin: 2px 0 10px; letter-spacing: .3px; }
.lc-role { display: inline-block; font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 1.2px;
  border: 1px solid var(--gold-dim); border-radius: 20px; padding: 3px 12px; margin-bottom: 14px; align-self: flex-start; }
.lc-desc { color: var(--text-muted); font-size: 14.5px; flex: 1; }
.lc-more { color: var(--gold); font-size: 14px; font-weight: 600; margin-top: 16px; }
.legend-card:hover .lc-more { color: var(--gold-bright); }

/* ===== BÀI VIẾT TIỂU SỬ ===== */
.article { max-width: 780px; margin: 0 auto; padding: 44px 24px 20px; }
.article-head { text-align: center; margin-bottom: 12px; }
.article-head .medallion { margin: 0 auto 20px; }
.article-head h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(32px, 5vw, 48px); color: var(--gold-bright); line-height: 1.1; margin-bottom: 8px; }
.article-head .subtitle { color: var(--text-muted); font-size: 17px; font-style: italic; font-family: 'Cormorant Garamond', Georgia, serif; }
.article-head .meta-roles { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.article-head .meta-roles span { font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; border: 1px solid var(--gold-dim); border-radius: 20px; padding: 4px 13px; }

.article-body { font-size: 16.5px; line-height: 1.8; color: var(--text); }
.article-body h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 27px; color: var(--gold); margin: 40px 0 14px; padding-top: 8px; }
.article-body h3 { font-size: 19px; color: var(--text); margin: 26px 0 10px; }
.article-body p { color: var(--text-muted); margin-bottom: 16px; }
.article-body strong { color: var(--text); }
.article-body ul, .article-body ol { color: var(--text-muted); padding-left: 24px; margin-bottom: 16px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* Bảng thông tin nhanh */
.fact-box { background: var(--surface); border: 1px solid var(--border-bright); border-radius: var(--radius); padding: 22px 26px; margin: 26px 0; }
.fact-box h4 { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 14px; }
.fact-box dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; }
.fact-box dt { color: var(--text-dim); font-size: 14px; }
.fact-box dd { color: var(--text); font-size: 14.5px; }
@media (max-width: 560px) { .fact-box dl { grid-template-columns: 1fr; gap: 2px; } .fact-box dt { margin-top: 8px; } }

/* Trích dẫn nổi bật */
.pull-quote { border-left: 3px solid var(--gold); padding: 6px 0 6px 24px; margin: 26px 0; }
.pull-quote p { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 22px; line-height: 1.45; color: var(--gold-bright); margin-bottom: 8px; }
.pull-quote cite { color: var(--text-dim); font-size: 13px; font-style: normal; }

/* Danh sách bài học rút ra */
.lesson-list { list-style: none; padding-left: 0 !important; }
.lesson-list li { position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.lesson-list li:before { content: "★"; position: absolute; left: 8px; top: 12px; color: var(--gold); }
.lesson-list li strong { color: var(--text); }

/* Box liên hệ khóa học (CTA trong bài) */
.course-cta { background: linear-gradient(135deg, #221C10, var(--surface)); border: 1px solid var(--gold-dim); border-radius: 16px; padding: 30px 28px; margin: 44px 0 20px; text-align: center; }
.course-cta h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; color: var(--gold-bright); margin-bottom: 8px; }
.course-cta p { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* Nút trong vùng bài viết: KHÔNG bị gạch chân / đổi màu do .article-body a đè lên */
.article-body a.btn { text-decoration: none; }
.article-body a.btn-gold, .article-body a.btn-gold:hover { color: #1A1200; }
.article-body a.btn-ghost { color: var(--text); }
.article-body a.btn-ghost:hover { color: var(--gold); }

/* Gợi ý các huyền thoại khác (cuối trang tiểu sử) */
.related-wrap { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 34px; }
.related-wrap h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; color: var(--gold); text-align: center; margin-bottom: 22px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.related-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px 12px; transition: all .2s; }
.article-body a.related-card { text-decoration: none; color: inherit; }
.related-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.related-card .medallion { width: 54px; height: 54px; font-size: 20px; margin: 0; }
.related-card .rc-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 16.5px; color: var(--text); font-weight: 600; line-height: 1.2; }
.related-card .rc-tag { font-size: 10.5px; color: var(--gold); text-transform: uppercase; letter-spacing: .8px; }

/* Disclaimer nhỏ cuối bài */
.mini-disclaimer { text-align: center; color: var(--text-dim); font-size: 12.5px; font-style: italic; margin: 24px auto 0; max-width: 620px; }

/* ===== CHƯƠNG TRÌNH HỌC ===== */
.curriculum-phase { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 10px; padding: 26px 28px; margin-bottom: 18px; }
.curriculum-phase .cp-tag { font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 1.4px; font-weight: 600; }
.curriculum-phase h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 23px; color: var(--gold-bright); margin: 6px 0 10px; }
.curriculum-phase p { color: var(--text-muted); font-size: 15px; }
.curriculum-phase .cp-books { font-size: 13px; color: var(--text-dim); font-style: italic; margin-top: 8px; }

/* ===== ẢNH TRONG BÀI ===== */
.article-figure { margin: 28px 0; }
.article-figure img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); display: block; }
.article-figure figcaption { text-align: center; color: var(--text-dim); font-size: 13px; font-style: italic; margin-top: 10px; }
/* Ảnh nổi bên phải, chữ chảy quanh (tùy chọn) */
.article-figure.float-right { float: right; max-width: 300px; margin: 6px 0 20px 28px; }
.article-figure.float-left { float: left; max-width: 300px; margin: 6px 28px 20px 0; }
@media (max-width: 640px) {
  .article-figure.float-right, .article-figure.float-left { float: none; max-width: 100%; margin: 28px 0; }
}
/* Ảnh chân dung tròn ở đầu bài (thay huy hiệu chữ khi có ảnh) */
.bio-portrait { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 20px; border: 3px solid var(--gold-dim); box-shadow: 0 6px 22px rgba(0,0,0,.45); }
/* Ảnh lớn (banner) đầu bài — full chiều rộng bài viết */
.bio-hero { margin: 24px 0 30px; }
/* Mọi ảnh đầu bài về CÙNG khung 16:9; ảnh lệch tỷ lệ tự cắt bớt (căn hơi lên trên để giữ mặt) */
.bio-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 30%; border-radius: var(--radius); border: 1px solid var(--border); display: block; }

/* ===== SEO PROSE (dùng chung cho khối văn bản dài dưới trang) ===== */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; color: var(--gold); margin: 34px 0 12px; text-align: left; }
.prose p { color: var(--text-muted); font-size: 16px; line-height: 1.8; margin-bottom: 15px; }
