/* =============================================================
 * project-detail-additions.css
 * CSS bổ sung cho module Banghang — các class mới được dùng
 * thay thế toàn bộ inline style từ Blade templates.
 * Load sau project-detail.css.
 * ============================================================= */

/* ── Tổng quan: địa chỉ & bản đồ ─────────────────────────── */
.ov-addr-icon { color: var(--primary-color, #c0392b); margin-right: 6px; }
.ov-map-iframe { border-radius: 12px; border: none; display: block; width: 100%; }
.ov-addr-fallback {
    padding: 16px 20px;
    background: #f8f9fb;
    border-radius: 10px;
    border: 1px solid #eaecf0;
    font-size: 14px;
    color: #555;
}

/* ── Phân khu: block section ──────────────────────────────── */
.fe-block-section   { display: none; margin-top: 24px; }
.fe-block-sd-name   { color: var(--primary-color, #c0392b); }
.fe-block-empty     { display: none; text-align: center; padding: 30px; color: #aaa; }
.fe-block-empty-icon { font-size: 28px; display: block; margin-bottom: 8px; opacity: .3; }

/* ── Filter banner (từ tab Tổng quan → Bảng hàng) ─────────── */
.fe-filter-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: #fff5f0;
    border: 1.5px solid var(--primary-color, #c0392b);
    border-radius: 8px;
    margin: 0 0 10px;
    font-size: 13px;
    color: #444;
}
.fe-filter-banner-icon  { color: var(--primary-color, #c0392b); }
.fe-filter-banner-label { margin: 0 4px; }
.fe-filter-banner-clear {
    margin-left: auto;
    background: none;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: border-color .15s;
}
.fe-filter-banner-clear:hover { border-color: var(--primary-color, #c0392b); color: var(--primary-color, #c0392b); }

/* ── pd-section-padded modifier ──────────────────────────── */
.pd-section-no-top { padding-top: 0 !important; }

/* ── Bảng hàng: bổ sung class ────────────────────────────── */
.unit-filter-hidden  { display: none; }
.ut-th-sortable      { user-select: none; cursor: pointer; }
.ut-sort-icon        { margin-left: 5px; color: #fff; font-size: 0.9em; vertical-align: middle; }
.ut-unit-view-sub    { font-size: 11.5px; color: #aaa; }

/* ── Tab Video ────────────────────────────────────────────── */
.video-section          { margin-bottom: 40px; }
.video-overview-wrap    { margin-top: 16px; }

.video-embed-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 24px rgba(0,0,0,.18);
}
.video-embed-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Link ngoài khi không embed được */
.video-ext-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #f8f9fb;
    border: 1.5px solid #eaecf0;
    border-radius: 12px;
    text-decoration: none;
    color: #1a1a1a;
    transition: border-color .2s, box-shadow .2s;
}
.video-ext-link:hover {
    border-color: var(--primary-color, #c0392b);
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.video-ext-icon {
    font-size: 36px;
    color: var(--primary-color, #c0392b);
    flex-shrink: 0;
    line-height: 1;
}
.video-ext-info    { flex: 1; min-width: 0; }
.video-ext-title   { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.video-ext-url     { display: block; font-size: 12.5px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-ext-arrow   { color: #bbb; font-size: 16px; flex-shrink: 0; }

/* ── Video training list ─────────────────────────────────── */
.video-training-list { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; }

.vt-card {
    background: #fff;
    border: 1.5px solid #eaecf0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.vt-card:hover { border-color: var(--primary-color, #c0392b); box-shadow: 0 4px 16px rgba(0,0,0,.08); }

/* Thumbnail row */
.vt-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    cursor: pointer;
    overflow: hidden;
    background: #111;
}
.vt-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.vt-card:hover .vt-thumb { transform: scale(1.03); }
.vt-thumb-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#1a1a2e,#16213e);
    color: #555;
    font-size: 40px;
}
.vt-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.25);
    transition: background .2s;
}
.vt-card:hover .vt-play-overlay { background: rgba(0,0,0,.4); }
.vt-play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color, #c0392b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
    transition: transform .2s;
}
.vt-card:hover .vt-play-btn { transform: scale(1.1); }

/* Embed player */
.vt-embed-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}
.vt-embed-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.vt-embed-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,.6);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    transition: background .15s;
}
.vt-embed-close:hover { background: rgba(0,0,0,.85); }

/* Info row */
.vt-info {
    display: flex;
    gap: 16px;
    padding: 16px 18px;
    align-items: flex-start;
}
.vt-num {
    font-size: 28px;
    font-weight: 800;
    color: #eaecf0;
    flex-shrink: 0;
    line-height: 1;
    min-width: 36px;
}
.vt-body   { flex: 1; min-width: 0; }
.vt-title  { font-size: 15px; font-weight: 700; color: #1a1a1a; margin: 0 0 6px; }
.vt-desc   { font-size: 13px; color: #666; margin: 0 0 12px; line-height: 1.6; }
.vt-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.vt-btn-play {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--primary-color, #c0392b);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .15s;
}
.vt-btn-play:hover { opacity: .88; }

.vt-btn-ext {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #fff;
    color: #555;
    border: 1.5px solid #e5e5e5;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, color .15s;
}
.vt-btn-ext:hover {
    border-color: var(--primary-color, #c0392b);
    color: var(--primary-color, #c0392b);
}

/* ── Tab Tài liệu ───────────────────────────────────────────── */
.doc-fe-icon-link   { background: #6366f1; }
.doc-fe-icon-pdf    { background: #ef4444; }
.doc-fe-icon-png,
.doc-fe-icon-jpg,
.doc-fe-icon-jpeg   { background: #10b981; }
.doc-fe-icon-doc,
.doc-fe-icon-docx   { background: #2563eb; }
.doc-fe-icon-xls,
.doc-fe-icon-xlsx   { background: #16a34a; }
.doc-fe-icon-ppt,
.doc-fe-icon-pptx   { background: #f59e0b; }
.doc-fe-icon-zip    { background: #8b5cf6; }

/* Responsive video training ──────────────────────────────── */
@media (min-width: 768px) {
    .vt-media { aspect-ratio: unset; height: 220px; }
    .vt-card {
        display: grid;
        grid-template-columns: 300px 1fr;
        align-items: stretch;
    }
    .vt-embed-wrap { padding-top: 0; height: 220px; }
    .vt-embed-wrap iframe { height: 100%; }
    .vt-info { align-items: center; }
}
@media (min-width: 1024px) {
    .vt-media, .vt-embed-wrap { height: 240px; }
    .vt-card { grid-template-columns: 360px 1fr; }
}
-e 
.vt-embed-hidden { display: none; }

/* ── Tổng quan: Video session ─────────────────────────────── */
.ov-video-icon  { color: var(--primary-color, #c0392b); margin-right: 8px; }

.ov-video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.ov-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.ov-video-ext-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8f9fb;
    border: 1.5px solid #eaecf0;
    border-radius: 10px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    transition: border-color .2s;
}
.ov-video-ext-link:hover { border-color: var(--primary-color, #c0392b); }
.ov-video-ext-icon   { font-size: 28px; color: var(--primary-color, #c0392b); }
.ov-video-ext-arrow  { margin-left: auto; color: #bbb; }

/* ── Tab Đào tạo ─────────────────────────────────────────── */
.dt-list { display: flex; flex-direction: column; gap: 18px; }

.dt-card {
    background: #fff;
    border: 1.5px solid #eaecf0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.dt-card:hover {
    border-color: var(--primary-color, #c0392b);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.dt-row { display: flex; align-items: stretch; }

/* Thumbnail */
.dt-thumb-wrap {
    position: relative;
    width: 200px;
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
    background: #111;
}
.dt-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.dt-card:hover .dt-thumb { transform: scale(1.04); }
.dt-thumb-ph {
    width: 100%;
    height: 100%;
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #555;
    font-size: 36px;
}
.dt-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.28);
    transition: background .2s;
}
.dt-card:hover .dt-play-overlay { background: rgba(0,0,0,.42); }
.dt-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color, #c0392b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 3px 12px rgba(0,0,0,.3);
    transition: transform .2s;
}
.dt-card:hover .dt-play-btn { transform: scale(1.1); }

/* Info */
.dt-info {
    display: flex;
    gap: 14px;
    padding: 16px;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}
.dt-num {
    font-size: 26px;
    font-weight: 800;
    color: #eaecf0;
    flex-shrink: 0;
    line-height: 1;
    min-width: 34px;
}
.dt-body  { flex: 1; min-width: 0; }
.dt-title { font-size: 14.5px; font-weight: 700; color: #1a1a1a; margin: 0 0 6px; }
.dt-desc  { font-size: 13px; color: #666; margin: 0 0 12px; line-height: 1.6; }
.dt-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.dt-btn-play {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--primary-color, #c0392b);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .15s;
}
.dt-btn-play:hover { opacity: .88; }

.dt-btn-ext {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #fff;
    color: #555;
    border: 1.5px solid #e5e5e5;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, color .15s;
}
.dt-btn-ext:hover {
    border-color: var(--primary-color, #c0392b);
    color: var(--primary-color, #c0392b);
}

/* Embed */
.dt-embed-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}
.dt-embed-hidden { display: none; }
.dt-embed-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.dt-embed-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,.6);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    transition: background .15s;
}
.dt-embed-close:hover { background: rgba(0,0,0,.85); }

@media (max-width: 600px) {
    .dt-row { flex-direction: column; }
    .dt-thumb-wrap { width: 100%; min-height: 180px; }
    .dt-num { display: none; }
}
