/* Module Bác sĩ & Khoa/phòng - giao diện dùng chung cho bản máy tính và điện thoại.
   Tách khỏi trang để trình duyệt lưu đệm. Màu theo chuẩn chung của website. */
.dl-wrap { --dl-blue: #0a74b0; --dl-navy: #1a3f5e; --dl-muted: #526275; --dl-line: #dce6ef; --dl-soft: #f2f8fc; --dl-grad: linear-gradient(135deg, #0a6ea8 0%, #0a74b0 100%); --dl-nhat: linear-gradient(135deg, #e4f1fa 0%, #e6f6f6 100%); color: var(--dl-navy); -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
.dl-wrap *, .dl-wrap *::before, .dl-wrap *::after { box-sizing: border-box; }
.dl-wrap [hidden] { display: none !important; }
.dl-wrap a, .dl-wrap button { touch-action: manipulation; }

/* Đầu trang: tiêu đề bên trái, chia sẻ bên phải */
.dl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 12px; }
.dl-title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.35; color: #005bb5; }
.dl-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dl-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--dl-line); border-radius: 8px; background: #fff; color: var(--dl-navy) !important; font-size: 13px; font-weight: 600; text-decoration: none !important; cursor: pointer; transition: background .15s, border-color .15s; }
.dl-pill:hover, .dl-pill:focus { background: var(--dl-nhat); border-color: #c9e2f1; }
.dl-pill svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.dl-fb svg { fill: #1877f2; }
.dl-pill.xong { background: #e2f4ec; border-color: #bfe5cf; color: #1a7a52 !important; }

/* Tìm kiếm */
.dl-search { position: relative; margin: 0 0 16px; }
.dl-search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: var(--dl-blue); pointer-events: none; }
.dl-search input[type="search"] { width: 100%; height: 44px; padding: 0 14px 0 44px; border: 1px solid var(--dl-line); border-radius: 10px; background: #fff; color: var(--dl-navy); font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
.dl-search input[type="search"]::placeholder { color: var(--dl-muted); opacity: 1; }
.dl-search input[type="search"]:focus { border-color: var(--dl-blue); box-shadow: 0 0 0 3px rgba(10, 116, 176, .16); }

/* Bố cục */
.dl-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.dl-wrap--chitiet .dl-grid { grid-template-columns: minmax(0, 1fr); }
.dl-side { position: sticky; top: 12px; }
.dl-main { min-width: 0; display: flow-root; transition: opacity .12s; }

/* Danh sách khoa/phòng */
.dl-depts { border: 1px solid var(--dl-line); border-radius: 10px; background: #fff; overflow: hidden; }
.dl-depts-head { padding: 10px 14px; background: var(--dl-nhat); font-size: 13.5px; font-weight: 700; color: var(--dl-navy); }
.dl-dept { display: block; padding: 8px 14px; border-top: 1px solid #edf2f6; color: var(--dl-navy); font-size: 14px; line-height: 1.35; text-decoration: none !important; transition: background .12s; }
.dl-dept:hover, .dl-dept:focus { background: var(--dl-soft); color: var(--dl-blue); }
.dl-dept.active { background: var(--dl-grad); color: #fff; font-weight: 600; }

/* Số kết quả */
.dl-result { margin: 0 0 10px; color: var(--dl-muted); font-size: 13.5px; }
.dl-result b { color: var(--dl-navy); }
.dl-empty { padding: 24px 16px; border: 1px dashed var(--dl-line); border-radius: 10px; color: var(--dl-muted); text-align: center; }

/* Thẻ bác sĩ: mọi thẻ cùng chiều cao, ảnh cùng tỉ lệ */
.dl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 16px; }
.dl-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--dl-line); border-radius: 10px; background: #fff; color: inherit; text-align: center; text-decoration: none !important; transition: border-color .15s, background .15s; }
.dl-card:hover, .dl-card:focus { border-color: #a9d0e8; background: var(--dl-soft); }
.dl-photo { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: var(--dl-nhat); color: #8fb1c8; }
.dl-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.dl-photo svg { width: 48px; height: 48px; fill: currentColor; }
.dl-card-body { display: flex; flex: 1; flex-direction: column; gap: 2px; padding: 9px 8px 10px; }
.dl-degree { color: var(--dl-muted); font-size: 12px; font-weight: 600; line-height: 1.3; }
.dl-wrap .dl-name { margin: 0; color: var(--dl-navy); font-size: 14.5px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.dl-role { color: var(--dl-blue); font-size: 12.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.dl-card-dept { margin-top: auto; padding-top: 4px; color: var(--dl-muted); font-size: 12px; line-height: 1.3; }

/* Thông tin khoa/phòng */
.dl-dept-info { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--dl-line); border-radius: 10px; background: var(--dl-nhat); }
.dl-dept-in { display: flex; flex-wrap: wrap; gap: 16px; }
.dl-dept-info img { width: 180px; max-width: 100%; border-radius: 8px; object-fit: cover; }
.dl-dept-text { flex: 1 1 260px; min-width: 0; }
.dl-dept-text h1 { margin: 0 0 6px; }
.dl-dept-text p { margin: 0 0 8px; line-height: 1.6; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 0 0 8px; padding: 0; list-style: none; font-size: 14px; }
.dl-meta a { color: var(--dl-blue); }
.dl-body { margin: 0 0 14px; display: flow-root; overflow-wrap: anywhere; line-height: 1.7; }
.dl-body img, .dl-block img { max-width: 100%; height: auto; }
.dl-body table, .dl-block table { max-width: 100%; }

/* Nút chính */
.dl-btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 18px; border-radius: 8px; background: var(--dl-grad); color: #fff !important; font-weight: 700; text-decoration: none !important; }
.dl-btn:hover, .dl-btn:focus { background: linear-gradient(135deg, #0a5f94 0%, #0a6ea8 100%); }
.dl-back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px; color: var(--dl-blue) !important; font-size: 13.5px; font-weight: 600; text-decoration: none !important; }
.dl-back:hover { text-decoration: underline !important; }
.dl-back svg { width: 16px; height: 16px; fill: currentColor; }

/* Trang chi tiết bác sĩ */
.dl-ct-hero { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; margin: 0 0 14px; padding: 16px; border: 1px solid var(--dl-line); border-radius: 12px; background: var(--dl-nhat); }
.dl-profile-photo { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: #fff; color: #8fb1c8; }
.dl-profile-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.dl-profile-photo svg { width: 90px; height: 90px; fill: currentColor; }
.dl-profile-info { min-width: 0; }
.dl-profile-degree { color: var(--dl-muted); font-size: 14px; font-weight: 600; }
.dl-wrap .dl-profile-name { margin: 2px 0 4px; overflow-wrap: anywhere; }
.dl-profile-role { margin: 0 0 10px; color: var(--dl-blue); font-size: 15px; font-weight: 700; }
.dl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px 16px; margin: 0 0 10px; padding: 0; list-style: none; }
.dl-facts small { display: block; color: var(--dl-muted); font-size: 12.5px; }
.dl-facts b { font-weight: 600; overflow-wrap: anywhere; }
.dl-facts a { color: var(--dl-blue); }
.dl-summary { margin: 0 0 12px; line-height: 1.65; }
.dl-ct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; align-items: start; }
.dl-block { padding: 14px 16px; border: 1px solid var(--dl-line); border-radius: 10px; background: #fff; }
.dl-block--rong { grid-column: 1 / -1; }
.dl-block--bao { border-color: #f3d39b; background: #fdf6e7; }
.dl-wrap .dl-block h2 { margin: 0 0 8px; color: var(--dl-navy); font-size: 15px; font-weight: 700; }
.dl-block ul { margin: 0; padding-left: 18px; }
.dl-block li { margin: 0 0 4px; line-height: 1.6; }
.dl-schedule { width: 100%; border-collapse: collapse; text-align: center; font-size: 14px; }
.dl-schedule th, .dl-schedule td { padding: 6px 8px; border: 1px solid var(--dl-line); }
.dl-schedule th { background: var(--dl-soft); font-weight: 600; }
.dl-schedule td.day { font-weight: 600; text-align: left; }
.dl-schedule td.on { background: #e2f4ec; color: #1a7a52; font-weight: 700; }
.dl-schedule td.off { color: #7d8fa1; }

/* Thành tích từ Sinh hoạt khoa học */
.dl-card-tt { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; margin-top: 3px; color: #955f05; font-size: 12px; font-weight: 600; line-height: 1.3; }
.dl-tt { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--dl-line); border-radius: 10px; background: #fff; }
.dl-wrap .dl-tt h2 { margin: 0 0 10px; color: var(--dl-navy); font-size: 15px; font-weight: 700; }
.dl-wrap .dl-tt h3 { margin: 12px 0 6px; color: var(--dl-navy); font-size: 14px; font-weight: 700; }
.dl-tt-so { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.dl-tt-o { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px 12px; border-radius: 8px; background: var(--dl-nhat); }
.dl-tt-o .fa { grid-row: 1 / 3; color: var(--dl-blue); font-size: 20px; }
.dl-tt-o b { color: var(--dl-navy); font-size: 19px; line-height: 1.15; }
.dl-tt-o span { color: var(--dl-muted); font-size: 12.5px; line-height: 1.25; }
.dl-tt-huy { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; font-size: 13.5px; font-weight: 600; }
.dl-hc1 .fa { color: #b8860b; }
.dl-hc2 .fa { color: #7d8fa1; }
.dl-hc3 .fa { color: #a0622d; }
.dl-tt-ds { margin: 0; padding-left: 18px; }
.dl-tt-ds li { margin: 0 0 4px; line-height: 1.5; }
.dl-tt-ds a { color: var(--dl-blue); }
.dl-tt-ds small { color: var(--dl-muted); white-space: nowrap; }
.dl-tt-nguon { margin: 10px 0 0; color: var(--dl-muted); font-size: 12.5px; }
/* Máy bảng và điện thoại: khoa/phòng thành hàng cuộn ngang, đỡ dài trang */
@media (max-width: 991px) {
    .dl-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .dl-side { position: static; }
    .dl-depts { display: flex; overflow-x: auto; gap: 6px; padding: 2px; border: 0; border-radius: 0; background: transparent; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
    .dl-depts::-webkit-scrollbar { display: none; }
    .dl-depts-head { display: none; }
    .dl-dept { flex: none; padding: 7px 12px; border: 1px solid var(--dl-line); border-radius: 999px; background: #fff; white-space: nowrap; scroll-snap-align: start; }
    .dl-dept.active { border-color: transparent; }
}
@media (max-width: 767px) {
    .dl-ct-hero { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 12px; }
    .dl-ct-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575px) {
    .dl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .dl-search input[type="search"] { font-size: 16px; height: 46px; }
    .dl-pill { height: 36px; }
    .dl-btn { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .dl-wrap * { transition: none !important; } }

/* The bac si kieu anh chan dung, chu de tren nen xanh dam dan (12/11/2026) */
@media (min-width: 576px) { .dl-cards { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; } }
.dl-card { position: relative; aspect-ratio: 5 / 7; border: 0; border-radius: 12px; background: #2684be; box-shadow: 0 2px 8px rgba(11, 58, 102, .16); isolation: isolate; transition: box-shadow .2s, transform .2s; }
.dl-card:hover, .dl-card:focus { background: #2684be; box-shadow: 0 8px 22px rgba(11, 58, 102, .30); transform: translateY(-2px); }
.dl-card:focus-visible { outline: 3px solid #ffd978; outline-offset: 2px; }
.dl-card .dl-photo { position: absolute; inset: 0; aspect-ratio: auto; background: linear-gradient(180deg, #d9ecf8 0%, #7fb6da 45%, #0a5a94 100%); color: #fff; z-index: -1; }
.dl-card .dl-photo img { transition: transform .35s ease; }
.dl-card:hover .dl-photo img { transform: scale(1.04); }
.dl-card .dl-photo svg { margin-bottom: 30%; opacity: .85; }
.dl-card .dl-card-body { position: absolute; left: 0; right: 0; bottom: 0; flex: none; gap: 0; padding: 24px 8px 9px; background: linear-gradient(180deg, rgba(38, 132, 190, 0) 0, rgba(38, 132, 190, .72) 24%, rgba(24, 112, 170, .86) 100%); color: #fff; text-shadow: 0 1px 2px rgba(0, 40, 80, .5); }
.dl-card .dl-degree { color: rgba(255, 255, 255, .88); font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.dl-card .dl-name { color: #fff; font-size: 16px; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 40, 80, .55); }
.dl-card .dl-role { color: #e6f3ff; font-size: 13px; font-style: italic; font-weight: 500; }
.dl-card .dl-card-tt { color: #ffd978; }
.dl-card .dl-card-dept { margin-top: 0; padding-top: 0; color: rgba(255, 255, 255, .80); font-size: 12.5px; }
@media (hover: none) { .dl-card:hover { transform: none; } .dl-card:hover .dl-photo img { transform: none; } }
@media (prefers-reduced-motion: reduce) { .dl-card, .dl-card .dl-photo img { transition: none; } }
/* Tong trang nga am, chu xanh muc: hop nen anh bac si (12/11/2026) */
.dl-cards .dl-card, .dl-cards .dl-card:hover, .dl-cards .dl-card:focus { background: #e9e2d6; }
.dl-cards .dl-card .dl-card-body { background: linear-gradient(180deg, rgba(250, 246, 238, 0) 0, rgba(250, 246, 238, .86) 26%, rgba(248, 243, 233, .97) 100%); color: #12395b; text-shadow: none; }
.dl-cards .dl-card .dl-name { color: #12395b; text-shadow: none; }
.dl-cards .dl-card .dl-degree { color: #5a6875; }
.dl-cards .dl-card .dl-role { color: #0a67a3; }
.dl-cards .dl-card .dl-card-dept { color: #55606b; }
.dl-cards .dl-card .dl-card-tt { color: #955f05; }
.dl-cards .dl-card .dl-photo { background: linear-gradient(180deg, #f3ede2 0%, #e2d9ca 100%); color: #a89c88; }
.dl-cards .dl-card:focus-visible { outline-color: #0a67a3; }
/* Trang chi tiet bac si: khung ho so tong trang nga, dong bo voi the o danh sach (dot 34) */
.dl-ct-hero { border-color: #e6dccb; background: linear-gradient(135deg, #fbf8f1 0%, #f1eadd 100%); }
.dl-ct-hero .dl-profile-photo { background: #e9e2d6; box-shadow: 0 4px 14px rgba(90, 70, 40, .18); }
.dl-ct-hero .dl-profile-name { color: #12395b; }
.dl-ct-hero .dl-profile-degree { color: #5a6875; letter-spacing: .4px; text-transform: uppercase; }
.dl-ct-hero .dl-profile-role { color: #0a67a3; font-style: italic; }
.dl-ct-hero .dl-facts small { color: #5a6875; }