/* ============================================================================
   community-cards.css — SKIN của các card khu Cộng đồng, gom về MỘT chỗ
   (đi cặp với community-cards.js). [2026-08-17]
   Trước đây rải inline trong Group.aspx / GuestPostIdeaRecruitment.aspx /
   GuestPostIdeaQuestion.aspx — sửa 1 card phải mở đúng trang đó.
   Đã BỎ khi gom: CSS pager client Tuyển dụng (cq-td-paging — pager đã xóa).
   ============================================================================ */

/* ========================================================================
   TỔ CHỨC — DANH THIẾP [2026-07-23]
   Đóng khung trắng đều, logo bo góc, mô tả kẹp 2 dòng, avatar nhân sự
   chồng gọn. Masonry verified-first: hàng cột flex, gap đều 20 bốn phía.
   ======================================================================== */
.cq-community-v2__grid.cq-tc-masonry { display: flex !important; gap: 20px; align-items: flex-start; }
.cq-community-v2__grid.cq-tc-masonry .cq-tc-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cq-community-v2__grid.cq-tc-masonry .cq-tc-col > .item-2,
.cq-community-v2__grid.cq-tc-masonry .cq-tc-col > .item { width: 100%; margin: 0; }

.cq-community-v2__grid .item-2 > .inner-item { padding: 0 !important; }
.cq-community-v2__grid .group-item {
    margin: 0 !important;
    background: #fff;
    border: 1px solid rgba(18, 56, 91, .10);
    border-radius: var(--cq-r-card);
    padding: 16px 16px 14px;
    box-shadow: 0 8px 22px rgba(18, 56, 91, .06);
}
.cq-community-v2__grid .group-item .des {
    position: relative;
    min-height: 52px;
    padding-left: 64px;   /* chừa chỗ cho logo 52 + 12 */
}
.cq-community-v2__grid .group-item .des > img.img {
    position: absolute; left: 0; top: 0;
    width: 52px; height: 52px;
    border-radius: 12px; object-fit: cover; margin: 0;
}
.cq-community-v2__grid .group-item .des .name {
    display: block;
    color: #12385b; font-weight: 700; font-size: 16px; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-decoration: none; margin-bottom: 4px;
}
.cq-community-v2__grid .group-item .des .desc {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    color: #5b6b7a; font-size: 13.5px; line-height: 1.5; margin: 0;
}
.cq-community-v2__grid .group-item .list-mem {
    display: flex; align-items: center; flex-wrap: nowrap; overflow: hidden;
    margin-top: 12px; padding-top: 12px;
    border-top: 1px solid rgba(18, 56, 91, .07);
}
.cq-community-v2__grid .group-item .list-mem .c {
    display: block; flex: 0 0 auto;
    width: 30px; height: 30px; margin-left: -8px;
    border: 2px solid #fff; border-radius: 50%; overflow: hidden;
    background: #e9eef2;
}
.cq-community-v2__grid .group-item .list-mem a.c:first-of-type { margin-left: 0; }
.cq-community-v2__grid .group-item .list-mem .c img { width: 100%; height: 100%; object-fit: cover; }
.cq-community-v2__grid .group-item .list-mem a.c:nth-of-type(n+7) { display: none; }  /* tối đa 6 avatar */
.cq-community-v2__grid .group-item .list-mem .cq-mem-more { margin-left: 10px; color: #7a8fa3; font-size: 13px; font-weight: 600; white-space: nowrap; }

/* Danh thiếp đầy đủ (tổ chức có dữ liệu) */
.cq-community-v2__grid .group-item.cq-tc { display: flex; gap: 14px; align-items: flex-start; }
.cq-community-v2__grid .group-item.cq-tc .cq-tc-logo { flex: 0 0 58px; display: block; }
.cq-community-v2__grid .group-item.cq-tc .cq-tc-logo img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; display: block; }
.cq-community-v2__grid .group-item.cq-tc .cq-tc-body { min-width: 0; flex: 1 1 auto; }
.cq-community-v2__grid .group-item.cq-tc .cq-tc-name { display: flex; align-items: center; }
.cq-community-v2__grid .group-item.cq-tc .cq-tc-vi { color: #12385b; font-weight: 700; font-size: 16px; line-height: 1.25; text-decoration: none; }
.cq-community-v2__grid .group-item.cq-tc .cq-tc-vbadge { position: relative; display: inline-flex; align-items: center; }
.cq-community-v2__grid .group-item.cq-tc .cq-tc-verified { margin-left: 6px; color: #1d9bf0; font-size: 14px; cursor: help; }
.cq-community-v2__grid .group-item.cq-tc .cq-tc-tip {
    display: none; position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%);
    width: max-content; max-width: 230px; white-space: normal;
    background: #12385b; color: #fff; font-style: normal; font-size: 12px; font-weight: 500; line-height: 1.4;
    padding: 8px 11px; border-radius: 9px; box-shadow: 0 10px 26px rgba(18, 56, 91, .28); z-index: 30;
}
.cq-community-v2__grid .group-item.cq-tc .cq-tc-tip::after {
    content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border: 5px solid transparent; border-top-color: #12385b;
}
.cq-community-v2__grid .group-item.cq-tc .cq-tc-vbadge:hover .cq-tc-tip { display: block; }
.cq-community-v2__grid .group-item.cq-tc .cq-tc-mem {
    display: flex; align-items: center; flex-wrap: nowrap; overflow: hidden;
    margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(18, 56, 91, .07);
}
.cq-community-v2__grid .group-item.cq-tc .cq-tc-mem-lb { color: #8a9bab; font-size: 11.5px; font-weight: 400; margin-left: 9px; flex: 0 1 auto; }
.cq-community-v2__grid .group-item.cq-tc .cq-tc-mem .c {
    display: block; flex: 0 0 auto; width: 24px; height: 24px; margin-left: -7px;
    border: 2px solid #fff; border-radius: 50%; overflow: hidden; background: #e9eef2;
}
.cq-community-v2__grid .group-item.cq-tc .cq-tc-mem a.c:first-of-type { margin-left: 0; }
.cq-community-v2__grid .group-item.cq-tc .cq-tc-mem .c img { width: 100%; height: 100%; object-fit: cover; }
.cq-community-v2__grid .group-item.cq-tc .cq-tc-mem .cq-mem-more { margin-left: 10px; color: #7a8fa3; font-size: 12px; font-weight: 600; white-space: nowrap; }
.cq-community-v2__grid .group-item.cq-tc .cq-tc-en { color: #7a8fa3; font-size: 12.5px; font-style: italic; margin: 1px 0 6px; }
.cq-community-v2__grid .group-item.cq-tc .cq-tc-type { display: inline-block; background: #eaf3ee; color: #256b4c; font-size: 11.5px; font-weight: 600; padding: 2px 11px; border-radius: 999px; margin: 0 0 9px; }
.cq-community-v2__grid .group-item.cq-tc .cq-tc-row { display: flex; align-items: flex-start; gap: 7px; color: #4f6377; font-size: 13px; line-height: 1.45; margin-bottom: 4px; }
.cq-community-v2__grid .group-item.cq-tc .cq-tc-row i { width: 14px; margin-top: 3px; color: #12385b; font-size: 12px; flex: 0 0 14px; text-align: center; }
.cq-community-v2__grid .group-item.cq-tc .cq-tc-row a { color: #2E7B96; text-decoration: none; font-weight: 600; }
.cq-community-v2__grid .group-item.cq-tc .cq-tc-row a:hover { text-decoration: underline; }
.cq-community-v2__grid .group-item.cq-tc .cq-tc-intro {
    margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(18, 56, 91, .07);
    color: #5b6b7a; font-size: 13px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ========================================================================
   TUYỂN DỤNG — CARD TIN VIỆC [2026-07-22]
   Công ty -> đăng bởi -> vị trí+số lượng -> ảnh -> footer.
   Menu chia sẻ = nút 3 chấm (đồng bộ ngôn ngữ card base).
   ======================================================================== */
.cq-rcard { background: #fff; border: 1px solid rgba(18,56,91,.09); border-radius: var(--cq-r-card); overflow: hidden; }
.cq-rcard .sep10, .cq-rcard .control { display: none !important; }

.cq-rcard .cq-rc-company {
    display: flex; align-items: center; gap: 10px; padding: 13px 15px 0;
}
.cq-rcard .cq-rc-clogo {
    flex: 0 0 34px; width: 34px; height: 34px; border-radius: 8px;
    object-fit: cover; display: block; background: #eef2f5;
}
.cq-rcard .cq-rc-cname {
    min-width: 0; color: #12385b; font-family: 'Montserrat', sans-serif;
    font-size: 16px; font-weight: 800; line-height: 1.2;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cq-rcard .cq-rc-cverified { flex: 0 0 auto; color: #1d9bf0; font-size: 14px; }
.cq-rcard .cq-rc-by { display: flex; align-items: center; gap: 7px; padding: 8px 15px 2px; }
.cq-rcard .cq-rc-by-txt { color: #8797a6; font-size: 12px; line-height: 1.3; }
.cq-rcard .cq-rc-by-txt b { color: #4f6377; font-weight: 700; }
.cq-rcard .cq-rc-pos-list { display: flex; flex-direction: column; gap: 5px; margin: 9px 15px 0; }
.cq-rcard .cq-rc-pos {
    display: flex; align-items: center; gap: 8px;
    color: #12385b; font-size: 12.5px; font-weight: 600; line-height: 1.3;
}
.cq-rcard .cq-rc-pos > i { flex: 0 0 14px; color: #2E5B96; font-size: 12px; text-align: center; }
.cq-rcard .cq-rc-pos-sl {
    margin-left: auto; flex: 0 0 auto; white-space: nowrap;
    background: #eaf3ee; color: #2E7B3A; font-size: 11.5px; font-weight: 700;
    padding: 2px 9px; border-radius: 999px;
}
.cq-rcard .cq-rc-desc {
    padding: 9px 15px 12px; color: #4f6377; font-size: 13px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cq-rcard .wrap-img { margin: 0 !important; display: block !important; }
.cq-rcard .wrap-img .img, .cq-rcard .wrap-img > a { display: block; width: 100%; }
.cq-rcard .wrap-img img { width: 100%; height: auto; display: block; }

.cq-rcard .wrap-img { order: 0 !important; }
.cq-rcard .cq-rc-company { order: 1; padding-top: 12px; }
.cq-rcard .cq-rc-by { order: 2; }
.cq-rcard .cq-rc-pos-list { order: 3; padding-bottom: 4px; }
.cq-rcard .social-box {
    order: 4 !important; display: flex !important; align-items: center; gap: 16px;
    margin: 4px 0 0 !important; padding: 10px 15px 12px !important;
    border-top: 1px solid rgba(18, 56, 91, .08);
    color: #8797a6; font-size: 13px; font-weight: 600; position: static !important;
}
.cq-rcard .social-box .comments { order: 1; }
.cq-rcard .social-box .like { order: 2; }
.cq-rcard .social-box .share-box { order: 3; margin-left: auto; position: relative; }
.cq-rcard .social-box .comments,
.cq-rcard .social-box .like { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.cq-rcard .social-box .comments i,
.cq-rcard .social-box .like i { font-size: 15px; }
.cq-rcard .social-box .like .fa-heart { color: #e0526a; }
.cq-rcard .social-box .share-icon { cursor: pointer; color: #8797a6; display: inline-flex; }
.cq-rcard .social-box .share-icon i { font-size: 16px; }
.cq-rcard .social-box .share-box ul {
    position: absolute; right: 0; bottom: calc(100% + 8px); display: none;
    min-width: 172px; margin: 0; padding: 8px; list-style: none; border-radius: 12px;
    background: #fff; box-shadow: 0 12px 30px rgba(18, 56, 91, .16); z-index: 6;
}
.cq-rcard .social-box .share-box:hover ul { display: block; }
.cq-rcard .social-box .share-box ul li { margin: 0; }
.cq-rcard .social-box .share-box ul a { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; color: #12385b; font-size: 13px; text-decoration: none; white-space: nowrap; }
.cq-rcard .social-box .share-box ul a:hover { background: #f3f7fa; }
.cq-rcard .guest-item-idea,
.cq-rcard.guest-item-idea { margin-bottom: 0 !important; }

/* Lưới masonry tuyển dụng */
#cqCommunityRecruitmentV2Grid.cq-td-masonry { display: flex !important; gap: 16px; align-items: flex-start; }
#cqCommunityRecruitmentV2Grid.cq-td-masonry .cq-td-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
#cqCommunityRecruitmentV2Grid.cq-td-masonry .cq-td-col > .item,
#cqCommunityRecruitmentV2Grid.cq-td-masonry .cq-td-col > .item-2 { width: 100%; margin: 0; }

/* ========================================================================
   HỎI ĐÁP — CARD NỀN MÀU + CÂU HỎI [2026-07-22]
   Lưới home-test-row + chữ câu hỏi to; pin đánh dấu + hàng meta rê chuột.
   (Phần chỉnh theo cỡ màn hình vẫn ở GuestPostIdeaQuestion.aspx vì trộn
   chung với luật khung của trang.)
   ======================================================================== */
.cq-community-v2__grid.home-test-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.cq-community-v2__grid.home-test-row .item-4,
.cq-community-v2__grid.home-test-row .item-wide { width: auto !important; float: none !important; margin: 0 !important; }
.cq-community-v2__grid.home-test-row .inner-item { margin: 0 !important; }
.cq-community-v2__grid.home-test-row .home-standard-card { height: auto !important; min-height: 260px; }
.cq-community-v2__grid.home-test-row .home-standard-card__media-wrap { margin-bottom: 0 !important; }
.cq-community-v2__grid.home-test-row .home-standard-card__media--question { min-height: 260px; border-radius: 20px; }
.cq-community-v2__grid.home-test-row .home-standard-card__media-question-title {
    display: block !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    font-size: 32px !important;
    line-height: 1.25 !important;
}
.cq-community-v2__grid.home-test-row .home-standard-card__body { display: none !important; }
.cq-community-v2__grid .guest-item .img.table {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 0;
    height: auto !important;
    padding: 14px 16px !important;
    text-align: left;
    overflow: visible;
    white-space: normal !important;
    line-height: 1.25 !important;
    font-size: 27px !important;
}
.cq-community-v2__grid .guest-item .img.table table {
    width: 100% !important;
    table-layout: auto;
    white-space: normal !important;
    height: auto !important;
}
.cq-community-v2__grid .guest-item .img.table tr { height: auto !important; }
.cq-community-v2__grid .guest-item .img.table td {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    display: table-cell !important;
    color: #ffffff !important;
    padding: 0 !important;
    vertical-align: top !important;
    text-align: left !important;
}
.cq-community-v2__grid .guest-item-idea .wrap-desc .desc,
.cq-community-v2__grid .guest-item-idea .wrap-desc .comment-first { display: none !important; }

/* Pin đánh dấu trên card Hỏi-đáp + hàng meta hiện khi rê */
.cq-community-v2__grid .guest-item { position: relative; }
.cq-community-v2__grid .cq-qmark { position: absolute; top: 12px; right: 14px; width: 26px; height: 44px; display: flex; align-items: flex-start; justify-content: center; z-index: 4; cursor: pointer; transition: transform .16s; -webkit-tap-highlight-color: transparent; }
.cq-community-v2__grid .guest-item:hover .cq-qmark { transform: scale(1.1); }
.cq-community-v2__grid .cq-qmark svg { width: 24px; height: 44px; overflow: visible; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.cq-community-v2__grid .cq-qmark .cq-ring-outline { fill: none; stroke: #fff; stroke-width: 4; opacity: 0; transition: opacity .3s; }
.cq-community-v2__grid .cq-qmark .cq-ring-base { fill: none; stroke: #fff; stroke-width: 2.5; transition: opacity .2s; }
.cq-community-v2__grid .cq-qmark .cq-ring-fill { fill: none; stroke: #EF2F3C; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 53.4; stroke-dashoffset: 53.4; transform: rotate(-90deg); transform-box: fill-box; transform-origin: center; transition: stroke-dashoffset .55s cubic-bezier(.45,.05,.2,1); }
.cq-community-v2__grid .cq-qmark .cq-needle { fill: #fff; transition: fill .25s, opacity .25s; }
.cq-community-v2__grid .guest-item:hover .cq-qmark:not(.True) .cq-ring-base { opacity: 0; }
.cq-community-v2__grid .guest-item:hover .cq-qmark:not(.True) .cq-ring-fill { stroke-dashoffset: 13.35; }
.cq-community-v2__grid .cq-qmark.True .cq-ring-outline { opacity: 1; }
.cq-community-v2__grid .cq-qmark.True .cq-ring-base { opacity: 0; }
.cq-community-v2__grid .cq-qmark.True .cq-ring-fill { stroke-dashoffset: 0; }
.cq-community-v2__grid .cq-qmark.True .cq-needle { opacity: 0; }
.cq-community-v2__grid .cq-qmark .cq-spark { position: absolute; left: 13px; top: 12px; width: 2.5px; height: 10px; border-radius: 2px; background: #EF2F3C; transform-origin: bottom center; pointer-events: none; animation: cqFly .4s ease-out forwards; }
@keyframes cqFly { 0% { opacity: 1; transform: translate(0,0) rotate(var(--rot)) scaleY(.2); } 30% { opacity: 1; transform: translate(calc(var(--dx)*.4),calc(var(--dy)*.4)) rotate(var(--rot)) scaleY(1); } 100% { opacity: 0; transform: translate(var(--dx),var(--dy)) rotate(var(--rot)) scaleY(1); } }
.cq-community-v2__grid .cq-qmeta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s; pointer-events: none; }
.cq-community-v2__grid .guest-item:hover .cq-qmeta { opacity: 1; transform: none; pointer-events: auto; }
.cq-community-v2__grid .cq-qmeta-name { color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.cq-community-v2__grid .cq-qmeta-pin { flex: 0 0 auto; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cq-community-v2__grid .cq-qmeta-pin i { color: #fff; font-size: 15px; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
