/* ============================================================
   HÒA NGỮ ĐƯỜNG — courses_news.css
   Dùng chung cho: trang danh sách khóa học, chi tiết khóa học,
   danh sách tin tức, chi tiết tin tức
   ============================================================ */

/* ============================================================
   PAGE HERO BANNER (dùng cho các trang con)
   ============================================================ */
.page-hero {
    position: relative;
    margin-top: 130px;
    background: linear-gradient(135deg, var(--deep) 0%, var(--red) 60%, var(--red-mid) 100%);
    color: #fff;
    padding: 72px 24px 60px;
    text-align: center;
    overflow: hidden;
}
.page-hero::before {
    content: '和';
    position: absolute;
    font-family: "Noto Serif SC", serif;
    font-size: 260px;
    color: rgba(255,255,255,.04);
    right: 5%;
    top: -30px;
    line-height: 1;
    pointer-events: none;
}
.page-hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-light);
    background: rgba(215,170,69,.15);
    border: 1px solid rgba(215,170,69,.35);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.page-hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    margin: 0 0 14px;
    color: #fff;
}
.page-hero p {
    font-size: 16px;
    color: rgba(255,255,255,.8);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}
.page-hero-deco {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(180deg, #fff8e9 0%, transparent 100%);
    transform: scaleY(-1);
}

/* Breadcrumb */
.breadcrumb-bar {
    background: var(--cream-deep);
    border-bottom: 1px solid var(--border-gold);
    padding: 10px 4%;
}
.breadcrumb-bar .bc-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}
.breadcrumb-bar a { color: var(--red); }
.breadcrumb-bar .bc-sep { color: var(--border-gold); }
.breadcrumb-bar .bc-current { color: var(--deep); font-weight: 600; }

/* ============================================================
   COURSES LIST PAGE
   ============================================================ */
.courses-page {
    background: linear-gradient(180deg, var(--cream-deep), #fff);
    min-height: 60vh;
    padding: 56px 4% 80px;
}
.courses-page .section-wrap {
    max-width: 1200px;
    margin: 0 auto;
}
.courses-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}
.courses-filter .filter-btn {
    background: #fff;
    border: 1.5px solid var(--border-gold);
    color: var(--deep);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 24px;
    cursor: pointer;
    transition: all .22s;
}
.courses-filter .filter-btn:hover,
.courses-filter .filter-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* Course Cards Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 28px;
}
.course-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-red);
    border: 1px solid var(--border-gold);
    transition: transform .28s, box-shadow .28s;
    display: flex;
    flex-direction: column;
}
.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(139,15,31,.14);
}
.course-card-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.course-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.course-card:hover .course-card-thumb img { transform: scale(1.06); }
.course-card-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: linear-gradient(90deg, var(--red), var(--red-mid));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: .5px;
}
.course-card-body {
    padding: 22px 24px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.course-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--deep);
    margin: 0 0 8px;
    line-height: 1.35;
}
.course-card-desc {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.65;
    margin: 0 0 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}
.course-card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.course-card-meta span {
    font-size: 12px;
    background: var(--gold-pale);
    color: var(--deep);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid var(--border-gold);
}
.course-card-meta span i { margin-right: 4px; color: var(--red); }
.course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-gold);
    gap: 10px;
}
.course-card-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--red);
}
.course-card-price small {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
}
.btn-course-detail {
    background: linear-gradient(90deg, var(--red), var(--red-mid));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    transition: opacity .2s, transform .2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-course-detail:hover { opacity: .88; transform: translateY(-1px); color: #fff; }

/* ============================================================
   COURSE DETAIL PAGE  — v2 (cream-first, red-as-accent)
   Prefix: cd-  (course detail)
   ============================================================ */
/* ── Trang tổng thể ── */
.cd-page {
    background: var(--cream-deep);
    padding-bottom: 80px;
}
.cd-breadcrumb {
    margin-top: 130px;
}

/* ── Header: ảnh nền mờ + nội dung ── */
.cd-header {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}
.cd-header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(2px) brightness(.45);
    transform: scale(1.04);
}
.cd-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgb(7 20 59 / 82%) 0%, rgb(7 26 59 / 60%) 50%, rgb(7 38 59 / 30%) 100%);
}
.cd-header-inner {
    position: relative;
    z-index: 1;
    /*max-width: 1140px;*/
    margin: 0 auto;
    padding: 52px 4% 60px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: center;
    width: 100%;
}

/* Cột trái */
.cd-badge {
    display: inline-block;
    background: rgba(215,170,69,.22);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.cd-title {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 900;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.22;
}
.cd-desc {
    font-size: 15px;
    color: rgba(255,255,255,.8);
    line-height: 1.75;
    margin: 0 0 22px;
    max-width: 520px;
}
.cd-quick-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.cd-qm-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.9);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 20px;
}
.cd-qm-item i { color: var(--gold-light); font-size: 11px; }
.cd-header-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.cd-btn-primary {
    background: linear-gradient(90deg, var(--red), var(--red-mid));
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 26px;
    border-radius: 28px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(139,15,31,.3);
}
.cd-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139,15,31,.38);
    color: #fff;
}
.cd-btn-primary.cd-btn-lg { font-size: 15px; padding: 14px 32px; }
.cd-btn-outline {
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 28px;
    border: 1.5px solid rgba(255,255,255,.45);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .2s;
}
.cd-btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Card giá (trong header, desktop) */
.cd-price-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 12px 40px rgba(59,7,16,.28);
}
.cd-price-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 16px;
    display: block;
}
.cd-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 14px;
}
.cd-price-main {
    font-size: 26px;
    font-weight: 900;
    color: var(--red);
}
.cd-price-label {
    font-size: 12px;
    color: var(--text-muted);
}
.cd-price-contact {
    font-size: 14px;
    font-weight: 700;
    color: var(--deep);
    text-align: center;
    padding: 8px 0 14px;
    border-bottom: 1px solid var(--border-gold);
    margin-bottom: 14px;
}
.cd-price-metas {
    list-style: none;
    padding: 0; margin: 0 0 18px;
}
.cd-price-metas li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--border-gold);
    font-size: 13px;
    gap: 8px;
}
.cd-price-metas li:last-child { border-bottom: none; }
.cd-price-metas .meta-key {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.cd-price-metas .meta-key i { color: var(--gold); width: 14px; text-align: center; }
.cd-price-metas .meta-val {
    font-weight: 700;
    color: var(--deep);
    text-align: right;
}
.cd-btn-register-full {
    width: 100%;
    background: linear-gradient(90deg, var(--red), var(--red-mid));
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 13px;
    border-radius: 28px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .2s;
}
.cd-btn-register-full:hover { opacity: .88; }
.cd-hotline-row {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.cd-hotline-row i { color: var(--gold); }
.cd-hotline-row a { color: var(--red); font-weight: 700; text-decoration: none; }

/* ── Body layout ── */
.cd-body {
    /*max-width: 1140px;*/
    margin: 0 auto;
    padding: 48px 4% 0;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* ── Sections nội dung chính ── */
.cd-section {
    background: #fff;
    border-radius: 16px;
    padding: 32px 32px 28px;
    margin-bottom: 24px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 2px 12px rgba(59,7,16,.05);
}
.cd-section-label {
    margin-bottom: 24px;
}
.cd-section-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(139,15,31,.07);
    border: 1px solid rgba(139,15,31,.15);
    padding: 3px 11px;
    border-radius: 20px;
    margin-bottom: 7px;
}
.cd-section-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--deep);
    margin: 0;
    line-height: 1.25;
}

/* ── ① Lộ trình (timeline) ── */
.cd-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 20px;
}
.cd-timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 28px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(180deg, var(--red) 0%, var(--gold) 100%);
    opacity: .25;
    border-radius: 2px;
}
.cd-timeline-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 26px;
    position: relative;
}
.cd-timeline-item:last-child { padding-bottom: 0; }
.cd-tl-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-mid));
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(139,15,31,.25);
    position: relative;
    z-index: 1;
}
.cd-tl-content {
    background: var(--cream-deep);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 14px 18px;
    flex: 1;
}
.cd-tl-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--deep);
    margin: 0 0 4px;
}
.cd-tl-value {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0;
}

/* ── ② Điểm nổi bật (checklist 2 cột) ── */
.cd-highlights {
    list-style: none;
    padding: 0; margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.cd-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.55;
    background: var(--cream-deep);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    padding: 12px 14px;
}
.cd-hl-icon {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-mid));
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── ③ Lợi ích (benefit cards grid) ── */
.cd-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.cd-benefit-card {
    background: var(--cream-deep);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    transition: transform .22s, box-shadow .22s;
}
.cd-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(139,15,31,.1);
}
.cd-benefit-icon {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139,15,31,.08), rgba(139,15,31,.04));
    border: 1.5px solid rgba(139,15,31,.15);
    color: var(--red);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.cd-benefit-card p {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0;
    font-weight: 600;
}

/* ── ④ Đầu vào / Đầu ra ── */
.cd-inout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.cd-inout-card {
    border-radius: 12px;
    padding: 20px;
    border: 1.5px solid var(--border-gold);
    background: var(--cream-deep);
}
.cd-inout-in { border-left: 4px solid var(--gold); }
.cd-inout-out { border-left: 4px solid var(--red); }
.cd-inout-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--deep);
    margin-bottom: 10px;
}
.cd-inout-in  .cd-inout-head i { color: var(--gold-dark); }
.cd-inout-out .cd-inout-head i { color: var(--red); }
.cd-inout-card p {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.7;
    margin: 0;
}

/* ── ⑤ CTA cuối ── */
.cd-bottom-cta {
    background: linear-gradient(110deg, var(--deep) 0%, var(--red) 100%);
    border-radius: 16px;
    padding: 36px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cd-bottom-cta-text .cd-section-tag {
    color: var(--gold-light);
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.2);
}
.cd-bottom-cta-text h3 {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin: 6px 0 6px;
}
.cd-bottom-cta-text p {
    font-size: 14px;
    color: rgba(255,255,255,.78);
    margin: 0;
}
.cd-bottom-cta .cd-btn-primary {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    color: var(--deep);
    box-shadow: 0 4px 16px rgba(215,170,69,.35);
    flex-shrink: 0;
}
.cd-bottom-cta .cd-btn-primary:hover { color: var(--deep); }

/* ── Sidebar ── */
.cd-sidebar {
    position: sticky;
    top: 150px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cd-sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 4px 20px rgba(59,7,16,.07);
}
.cd-sidebar-price {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-gold);
    margin-bottom: 14px;
}
.cd-sidebar-heading {
    font-size: 13px;
    font-weight: 800;
    color: var(--deep);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-gold);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.cd-nav-course-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-gold);
    font-size: 13px;
    font-weight: 600;
    color: var(--deep);
    text-decoration: none;
    transition: color .2s;
}
.cd-nav-course-item:last-child { border-bottom: none; }
.cd-nav-course-item i:first-child { color: var(--gold); flex-shrink: 0; }
.cd-nav-arrow { margin-left: auto; font-size: 10px; color: var(--border-gold); }
.cd-nav-course-item:hover { color: var(--red); }
.cd-nav-course-item:hover .cd-nav-arrow { color: var(--red); }

/* 1. Đội ngũ giảng viên */
.cd-teachers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.cd-teacher-card {
    display: flex;
    gap: 16px;
    background: var(--cream-deep);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 18px;
    align-items: flex-start;
    transition: transform .2s, box-shadow .2s;
}
.cd-teacher-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(139,15,31,.06);
}
.cd-teacher-avatar-wrap {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border-gold);
    background: #fff;
}
.cd-teacher-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cd-teacher-info {
    flex: 1;
}
.cd-teacher-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--deep);
    margin: 0 0 6px 0;
}
.cd-teacher-bio {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.5;
    margin: 0;
}

/* 2. Album hình ảnh hoạt động thực tế */
.cd-activities-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.cd-activity-gallery-item {
    position: relative;
    border-radius: 12px;
    height: 120px;
    overflow: hidden;
    border: 1px solid var(--border-gold);
    cursor: pointer;
}
.cd-activity-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.cd-activity-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(139, 15, 31, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s ease;
}
.cd-activity-lightbox-overlay i {
    color: #fff;
    font-size: 20px;
}
.cd-activity-gallery-item:hover .cd-activity-img {
    transform: scale(1.08);
}
.cd-activity-gallery-item:hover .cd-activity-lightbox-overlay {
    opacity: 1;
}

/* 3. Cảm nhận từ học viên */
.cd-testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cd-testimonial-item-block {
    background: var(--cream-deep);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 24px;
    position: relative;
}
.cd-testi-quote-icon {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 24px;
    color: rgba(139, 15, 31, 0.08);
}
.cd-testi-comment {
    font-size: 14px;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-body);
    margin: 0 0 16px 0;
}
.cd-testi-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cd-testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-gold);
    background: #fff;
}
.cd-testi-meta {
    display: flex;
    flex-direction: column;
}
.cd-testi-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--deep);
    margin: 0;
}
.cd-testi-job {
    font-size: 12px;
    color: var(--gold-dark);
    font-weight: 600;
}

/* Responsive Parity Cho Thiết Bị Di Động */
@media (max-width: 768px) {
    .cd-teachers-grid {
        grid-template-columns: 1fr;
    }
    .cd-activities-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .cd-teacher-card, .cd-testimonial-item-block {
        padding: 16px;
    }
}

/* ============================================================
   POSTS LIST PAGE
   ============================================================ */
.posts-page {
    background: linear-gradient(180deg, var(--cream-deep), #fff);
    padding: 56px 4% 80px;
    min-height: 60vh;
}
.posts-page .section-wrap {
    max-width: 1200px;
    margin: 0 auto;
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-red);
    border: 1px solid var(--border-gold);
    transition: transform .28s, box-shadow .28s;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(139,15,31,.14);
}
.post-card-thumb {
    height: 190px;
    overflow: hidden;
    position: relative;
}
.post-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.post-card:hover .post-card-thumb img { transform: scale(1.06); }
.post-card-category {
    position: absolute;
    bottom: 12px; left: 12px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}
.post-card-body {
    padding: 20px 22px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.post-card-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.post-card-date i { margin-right: 4px; color: var(--gold); }
.post-card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--deep);
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-excerpt {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}
.post-card-read-more {
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap .2s;
}
.post-card:hover .post-card-read-more { gap: 9px; }

/* Featured post (first post larger) */
.post-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
}
.post-card.featured .post-card-thumb {
    width: 420px;
    height: auto;
    flex-shrink: 0;
}
.post-card.featured .post-card-title { font-size: 22px; }
.post-card.featured .post-card-excerpt { -webkit-line-clamp: 4; }

/* ============================================================
   POST DETAIL PAGE
   ============================================================ */
.post-detail-page {
    background: linear-gradient(180deg, var(--cream-deep), #fff);
    padding-bottom: 80px;
}
.post-detail-body {
    /*max-width: 1100px;*/
    margin: 48px auto 0;
    padding: 0 4%;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}
.post-article {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px var(--shadow-red);
    border: 1px solid var(--border-gold);
}
.post-article-thumb {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 28px;
}
.post-article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted);
}
.post-article-meta .cat-tag {
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}
.post-article-meta i { color: var(--gold); margin-right: 3px; }
.post-article h1 {
    font-size: clamp(22px, 3.5vw, 34px);
    font-weight: 900;
    color: var(--deep);
    line-height: 1.3;
    margin: 0 0 24px;
}
.post-content {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-body);
}
.post-content h2 { color: var(--deep); font-size: 20px; font-weight: 800; margin: 28px 0 12px; }
.post-content h3 { color: var(--red); font-size: 17px; font-weight: 700; margin: 22px 0 10px; }
.post-content img { max-width: 100%; border-radius: 10px; margin: 18px 0; }
.post-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 12px 20px;
    margin: 20px 0;
    background: var(--gold-pale);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--deep);
}
.post-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-gold);
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.share-btn {
    background: var(--cream-deep);
    border: 1px solid var(--border-gold);
    color: var(--deep);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.share-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* Post sidebar */
.post-sidebar-sticky {
    position: sticky;
    top: 150px;
}
.post-sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 20px var(--shadow-red);
    border: 1px solid var(--border-gold);
    margin-bottom: 24px;
}
.post-sidebar-widget h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--deep);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-gold);
}
.related-post-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-gold);
    text-decoration: none;
    color: inherit;
}
.related-post-item:last-child { border-bottom: none; }
.related-post-item img {
    width: 64px; height: 52px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.related-post-item .rp-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--deep);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-post-item .rp-date { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.related-post-item:hover .rp-title { color: var(--red); }

/* CTA widget */
.cta-widget {
    background: linear-gradient(135deg, var(--deep), var(--red));
    color: #fff;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow-red);
    margin-bottom: 24px;
}
.cta-widget h4 { font-size: 16px; font-weight: 800; margin: 0 0 8px; color: var(--gold-light); }
.cta-widget p { font-size: 13px; opacity: .85; margin: 0 0 16px; line-height: 1.6; }
.btn-cta-widget {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    color: var(--deep);
    font-weight: 800;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: opacity .2s;
}
.btn-cta-widget:hover { opacity: .88; }

/* ============================================================
   SECTION TITLE — dùng chung
   ============================================================ */
.hnd-section-title {
    text-align: center;
    margin-bottom: 42px;
}
.hnd-section-title .eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(139,15,31,.07);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.hnd-section-title h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 900;
    color: var(--deep);
    margin: 0;
}
.hnd-section-title .line {
    width: 48px; height: 3px;
    background: linear-gradient(90deg, var(--red), var(--gold));
    border-radius: 3px;
    margin: 12px auto 0;
}

/* Pagination */
.hnd-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 52px;
    flex-wrap: wrap;
}
.hnd-pagination .page-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--border-gold);
    border-radius: 50%;
    background: #fff;
    color: var(--deep);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.hnd-pagination .page-btn:hover,
.hnd-pagination .page-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
    /* Course detail */
    .cd-header-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 20px 44px;
    }
    .cd-header-card { display: none; } /* giá hiển thị lại ở sidebar body */
    .cd-body {
        grid-template-columns: 1fr;
        padding: 32px 16px 0;
    }
    .cd-sidebar {
        position: static;
    }
    /* Post detail */
    .post-detail-body { grid-template-columns: 1fr; }
    .post-sidebar-sticky { position: static; }
}
@media (max-width: 720px) {
    /* Course detail sections */
    .cd-section { padding: 22px 16px 18px; }
    .cd-highlights { grid-template-columns: 1fr; }
    .cd-benefits { grid-template-columns: 1fr 1fr; }
    .cd-inout-grid { grid-template-columns: 1fr; }
    .cd-bottom-cta { flex-direction: column; align-items: flex-start; }
    .cd-timeline { padding-left: 8px; }
    /* Post */
    .post-card.featured { flex-direction: column; }
    .post-card.featured .post-card-thumb { width: 100%; height: 220px; }
}
@media (max-width: 600px) {
    .cd-breadcrumb { margin-top: 70px; }
    .page-hero { margin-top: 70px; padding: 52px 16px 44px; }
    .courses-grid, .posts-grid { grid-template-columns: 1fr; }
    .cd-benefits { grid-template-columns: 1fr; }
    .reg-form-row { grid-template-columns: 1fr; }
    .post-article { padding: 22px 16px; }
}