/* ============================================================
   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: auto;
    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: 1400px;*/
    margin: 0 auto;
    padding: 48px 4% 0;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}
.cd-main {
    min-width: 0; /* tránh nội dung dài (bảng/ảnh) đẩy vỡ layout grid, làm lệch sidebar */
}

/* ── 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;
}

.cd-rich-content {
    line-height: 1.7;
    color: #333;
    word-wrap: break-word;
}
.cd-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}
.cd-rich-content p { margin-bottom: 12px; }
.cd-rich-content a { color: #0d6efd; text-decoration: underline; }
.cd-rich-content ul,
.cd-rich-content ol { padding-left: 22px; margin-bottom: 12px; }
.cd-rich-content table { max-width: 100%; overflow-x: auto; display: block; }

/* ── ① 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%;
    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 {
    margin-top: auto;
    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-posts-mobile-only { display: none; }
.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;
}

/* Bổ sung Flex cho Header để đẩy nút Next/Prev sang góc phải */
.cd-section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}
.cd-section-header-flex .cd-section-label {
    margin-bottom: 0;
}

/* Style cho nút Next/Prev */
.cd-slider-navs {
    display: flex;
    gap: 10px;
}
.cd-slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e8e8e8;
    background: #fff;
    color: #595959;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.cd-slider-btn:hover {
    background: var(--gold-dark, #b8860b);
    color: #fff;
    border-color: var(--gold-dark, #b8860b);
}

/* Khung bọc Slide */
.cd-posts-slider-wrapper {
    overflow: hidden; /* Ẩn các bài viết tràn ra ngoài màn hình */
    width: 100%;
}

/* Chuyển Grid thành hàng Flex dài liên tục */
.cd-posts-grid {
    display: flex !important; /* Ghi đè grid tĩnh */
    gap: 24px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Định nghĩa kích thước các Card bài viết trên 1 hàng */
.cd-post-card {
    flex: 0 0 calc((100% - (24px * 2)) / 3); /* Mặc định hiện đúng 3 bài trên hàng */
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    word-break: break-word;
}

/* Các thuộc tính giữ nguyên từ bản cũ */
.cd-post-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.cd-post-thumb-wrap { position: relative; padding-top: 56.25%; background: #f5f5f5; overflow: hidden; }
.cd-post-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cd-post-card:hover .cd-post-img { transform: scale(1.05); }
.cd-post-body { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; }
.cd-post-meta-top { font-size: 12px; color: #8c8c8c; margin-bottom: 8px; }
.cd-post-title { font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 10px; }
.cd-post-title a { color: #262626; text-decoration: none; transition: color 0.2s; }
.cd-post-title a:hover { color: var(--gold-dark, #b8860b); }
.cd-post-excerpt { font-size: 13.5px; color: #595959; line-height: 1.5; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cd-post-readmore { margin-top: auto; font-size: 13px; font-weight: 500; color: var(--gold-dark, #b8860b); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.cd-post-readmore i { transition: transform 0.2s ease; }
.cd-post-readmore:hover i { transform: translateX(4px); }

/* Responsive tính toán lại tỷ lệ hiển thị mượt mà */
@media (max-width: 991px) {
    .cd-posts-grid { gap: 16px; }
    .cd-post-card { flex: 0 0 calc((100% - 16px) / 2); } /* Hiện 2 bài trên Tablet */
}
@media (max-width: 575px) {
    .cd-post-card { flex: 0 0 100%; } /* Hiện 1 bài trên Mobile */
    /*.cd-related-posts-section{*/
    /*    display:none;*/
    /*}*/
}

/* ============================================================
   COURSE REVIEWS SECTION  — thêm vào cuối courses_news.css
   Prefix: rv- (review)
   ============================================================ */

/* ── Section wrapper ── */
.cd-reviews-section .rv-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.rv-write-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--cream-deep);
    border: 1.5px solid var(--border-gold);
    color: var(--deep);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 24px;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.rv-write-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* ── Stars shared ── */
.rv-stars {
    display: inline-flex;
    gap: 2px;
    align-items: center;
}
.rv-star { font-size: var(--star-size, 16px); color: #ddd; }
.rv-star.filled { color: var(--gold); }

/* ── Overview ── */
.rv-overview {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 28px;
    align-items: start;
    background: var(--cream-deep);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 28px;
}
.rv-score-block {
    text-align: center;
}
.rv-score-big {
    font-size: 52px;
    font-weight: 900;
    color: var(--deep);
    line-height: 1;
}
.rv-score-max {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.rv-score-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 600;
}
/* Phân bổ */
.rv-dist-block {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 4px;
}
.rv-dist-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.rv-dist-label {
    width: 28px;
    text-align: right;
    font-weight: 700;
    color: var(--deep);
    flex-shrink: 0;
}
.rv-dist-bar-wrap {
    flex: 1;
    height: 8px;
    background: #e8e0d0;
    border-radius: 4px;
    overflow: hidden;
}
.rv-dist-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    border-radius: 4px;
    transition: width .4s ease;
}
.rv-dist-n {
    width: 24px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: left;
}
/* Tiêu chí */
.rv-criteria-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}
.rv-criteria-row {
    display: flex;
    align-items: center;
    font-size: 12px;
}
.rv-criteria-label {
    width: 110px;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}
.rv-criteria-val {
    font-size: 12px;
    font-weight: 700;
    color: var(--deep);
}

/* ── Empty state ── */
.rv-empty {
    text-align: center;
    padding: 40px 24px;
    color: var(--text-muted);
}
.rv-empty p { font-size: 14px; margin-bottom: 18px; }

/* ── Review cards ── */
.rv-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}
.rv-card {
    background: #fff;
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(59,7,16,.04);
    transition: box-shadow .2s;
}
.rv-card:hover { box-shadow: 0 4px 16px rgba(59,7,16,.08); }
.rv-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.rv-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.rv-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
}
.rv-card-meta { flex: 1; }
.rv-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--deep);
    margin-bottom: 3px;
}
.rv-date-stars {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rv-date {
    font-size: 11px;
    color: var(--text-muted);
}
.rv-content {
    position: relative;
    padding-left: 18px;
}
.rv-quote-icon {
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 12px;
    color: var(--border-gold);
}
.rv-content p {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.7;
    margin: 0;
    font-style: italic;
}
.rv-criteria-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.rv-crit-tag {
    font-size: 11px;
    background: var(--gold-pale);
    border: 1px solid var(--border-gold);
    color: var(--deep);
    padding: 3px 9px;
    border-radius: 12px;
    font-weight: 600;
}
.rv-load-more {
    width: 100%;
    background: var(--cream-deep);
    border: 1.5px solid var(--border-gold);
    color: var(--deep);
    font-size: 13px;
    font-weight: 700;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.rv-load-more:hover { background: #efe8d8; }

/* ============================================================
   REVIEW MODAL
   ============================================================ */
.rv-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(59,7,16,.55);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s;
}
.rv-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.rv-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 92vh;
    overflow-y: auto;
    transform: translateY(24px) scale(.97);
    transition: transform .28s;
}
.rv-modal-overlay.open .rv-modal { transform: translateY(0) scale(1); }

.rv-modal-head {
    background: linear-gradient(120deg, var(--deep), var(--red));
    color: #fff;
    padding: 24px 24px 20px;
    border-radius: 20px 20px 0 0;
    position: relative;
}
.rv-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.rv-modal-close:hover { background: rgba(255,255,255,.28); }
.rv-modal-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-light);
    display: block;
    margin-bottom: 5px;
}
.rv-modal-head h3 { font-size: 20px; font-weight: 900; margin: 0 0 4px; }
.rv-modal-head p  { font-size: 13px; opacity: .8; margin: 0; }

.rv-modal-body { padding: 24px; }

/* Star picker */
.rv-star-picker-wrap { margin-bottom: 18px; }
.rv-field-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--deep);
    margin-bottom: 8px;
}
.rv-required { color: var(--red); margin-left: 2px; }
.rv-star-picker {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}
.rv-pick-star {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 28px;
    color: #ddd;
    transition: color .15s, transform .15s;
    padding: 2px;
    line-height: 1;
}
.rv-pick-star:hover,
.rv-pick-star.active { color: var(--gold); transform: scale(1.12); }
.rv-star-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-dark);
    min-height: 18px;
}
/* Tiêu chí pickers */
.rv-criteria-pickers {
    background: var(--cream-deep);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rv-crit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.rv-crit-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--deep);
    width: 120px;
    flex-shrink: 0;
}
.rv-crit-picker .rv-pick-star { font-size: 18px; padding: 1px; }

/* Nội dung */
.rv-field-group { margin-bottom: 16px; }
.rv-field-group textarea,
.rv-field-group input {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--border-gold);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--ink);
    background: var(--cream-deep);
    transition: border-color .2s;
    resize: vertical;
}
.rv-field-group textarea:focus,
.rv-field-group input:focus {
    outline: none;
    border-color: var(--red);
    background: #fff;
}
.rv-char-count {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
}
/* Step 2 verify */
.rv-step2-intro {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--gold-pale);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
}
.rv-step2-intro i { color: var(--gold-dark); font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.rv-step2-intro p { font-size: 13px; color: var(--text-body); line-height: 1.6; margin: 0; }
.rv-phone-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}
/* Error */
.rv-step1-error,
.rv-step2-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 13px;
    padding: 9px 13px;
    border-radius: 8px;
    margin-bottom: 12px;
}
/* Buttons */
.rv-submit-btn {
    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;
}
.rv-submit-btn:hover { opacity: .88; }
.rv-submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.rv-back-btn {
    background: var(--cream-deep);
    border: 1.5px solid var(--border-gold);
    color: var(--deep);
    font-size: 13px;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 28px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    transition: background .2s;
}
.rv-back-btn:hover { background: #efe8d8; }
/* Success */
.rv-success-body { text-align: center; padding: 32px 24px; }
.rv-success-icon {
    font-size: 56px;
    color: #16a34a;
    margin-bottom: 14px;
    display: block;
}
.rv-success-body h4 {
    font-size: 20px;
    font-weight: 900;
    color: var(--deep);
    margin: 0 0 8px;
}
.rv-success-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 18px;
}

/* ── Responsive ── */
@media (max-width: 720px) {
    .rv-overview {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .rv-criteria-block { min-width: auto; }
    .rv-crit-row { flex-wrap: wrap; }
    .rv-crit-name { width: auto; }
}

/* ============================================================
   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; }

    .related-posts-desktop-only { display: none; }
    .related-posts-mobile-only { display: block; }
    .post-sidebar-widget { display: none !important; }
}
@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; }
}