/* CareerRide Community (cr-community.aspx). Cards drawn by App_Code/CrCommunity.vb. */
.cm-hero { background: linear-gradient(135deg, #0b1d36 0%, #14355e 100%); color: #fff; text-align: center; padding: 34px 20px 38px; }
.cm-hero h1 { margin: 0 0 8px; font-size: 32px; color: #fff; }
.cm-hero p { margin: 0 auto; max-width: 620px; color: #dbe6f3; font-size: 16px; line-height: 1.55; }

.cm-wrap { max-width: 680px; margin: 0 auto; padding: 22px 14px 40px; font-family: var(--font-body); color: #1f2a37; }
.cm-login-note { background: #fff7e6; border: 1px solid #f5d38a; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: 15px; }
.cm-login-note a { color: #0f2744; font-weight: 700; }
.cm-back { margin: 0 0 12px; }
.cm-back a { color: #1d4ed8; font-weight: 600; text-decoration: none; }
.cm-empty { text-align: center; padding: 40px 10px; color: #64748b; }
.cm-pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }

.cm-post { background: #fff; border: 1px solid #e3e8ef; border-radius: 14px; padding: 16px 16px 8px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(15,39,68,.04); }
.cm-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cm-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 40px; }
.cm-avatar-logo { display: inline-flex; align-items: center; justify-content: center; background: #0f2744; }
.cm-avatar-logo img { width: 30px; height: auto; }
.cm-who { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
.cm-name { font-weight: 700; font-size: 15px; }
.cm-tick { display: inline-flex; width: 16px; height: 16px; border-radius: 50%; background: #1d4ed8; color: #fff; font-size: 10px; align-items: center; justify-content: center; }
.cm-time { color: #64748b; font-size: 13px; text-decoration: none; }
.cm-time:hover { text-decoration: underline; }
.cm-pin { font-size: 12px; color: #92400e; background: #fef3c7; padding: 2px 8px; border-radius: 999px; }
.cm-tag { font-size: 12px; color: #0f2744; background: #eef3fa; padding: 2px 8px; border-radius: 999px; font-weight: 600; }

.cm-body { font-size: 16px; line-height: 1.6; white-space: normal; word-wrap: break-word; margin-bottom: 12px; }
.cm-body a { color: #1d4ed8; word-break: break-all; }

.cm-link { display: flex; gap: 12px; border: 1px solid #e3e8ef; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; margin-bottom: 12px; background: #fafbfd; }
.cm-link:hover { border-color: #e8a020; }
.cm-link-img { width: 38%; max-width: 230px; object-fit: cover; flex: 0 0 auto; aspect-ratio: 16/9; background: #e5e7eb; }
.cm-link-text { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 10px 0; min-width: 0; }
.cm-link-site { font-size: 12px; color: #64748b; text-transform: lowercase; }
.cm-link-title { font-weight: 700; font-size: 15px; line-height: 1.35; }
.cm-link-desc { font-size: 13px; color: #475569; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 520px) {
  .cm-link { flex-direction: column; gap: 0; }
  .cm-link-img { width: 100%; max-width: none; }
  .cm-link-text { padding: 10px 12px; }
}

.cm-video { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16/9; cursor: pointer; margin-bottom: 8px; }
.cm-video img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; }
.cm-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.cm-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border: 0; border-radius: 12px; background: #e62117; cursor: pointer; }
.cm-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.cm-video:hover .cm-play { background: #ff0000; }
.cm-video-title { font-weight: 700; font-size: 15px; margin: 2px 0 6px; }
.cm-video-more { display: inline-block; font-size: 14px; font-weight: 700; color: #0f2744; background: #fff3d6; padding: 6px 12px; border-radius: 8px; text-decoration: none; margin-bottom: 12px; }
.cm-video-more:hover { background: #e8a020; }

.cm-image-wrap { display: block; margin-bottom: 12px; }
.cm-image { width: 100%; border-radius: 12px; display: block; background: #f1f5f9; }

.cm-vote { margin-bottom: 12px; }
.cm-q { font-size: 16px; line-height: 1.6; margin-bottom: 10px; }
.cm-q img { max-width: 100%; height: auto; }
.cm-opt { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1.5px solid #d6dde7; background: #fff; border-radius: 10px; padding: 11px 14px; margin-bottom: 8px; font: inherit; font-size: 15px; cursor: pointer; overflow: hidden; color: inherit; }
.cm-opt:hover:not([disabled]) { border-color: #e8a020; background: #fffaf0; }
.cm-opt[disabled] { cursor: default; }
.cm-opt-bar { position: absolute; left: 0; top: 0; bottom: 0; background: #eef3fa; transition: width .5s ease; z-index: 0; }
.cm-opt-text, .cm-opt-pct { position: relative; z-index: 1; }
.cm-opt-text { flex: 1 1 auto; }
.cm-opt-pct { font-weight: 700; font-size: 14px; color: #334155; }
.cm-opt-img { max-height: 70px; max-width: 100%; vertical-align: middle; }
.cm-opt.mine { border-color: #1d4ed8; }
.cm-opt.mine .cm-opt-bar { background: #dbe7ff; }
.cm-opt.right { border-color: #16a34a; }
.cm-opt.right .cm-opt-bar { background: #dcfce7; }
.cm-opt.right .cm-opt-text::after { content: "  ✓"; color: #16a34a; font-weight: 700; }
.cm-opt.wrong { border-color: #dc2626; }
.cm-opt.wrong .cm-opt-bar { background: #fee2e2; }
.cm-opt.wrong .cm-opt-text::after { content: "  ✗"; color: #dc2626; font-weight: 700; }
.cm-vote-meta { font-size: 13px; color: #64748b; margin: 2px 0 6px; }
.cm-explain { background: #f6f8fb; border-left: 3px solid #e8a020; border-radius: 8px; padding: 10px 12px; margin-top: 8px; }
.cm-explain-label { font-weight: 700; font-size: 13px; color: #0f2744; margin-bottom: 4px; }
.cm-explain-text { font-size: 15px; line-height: 1.6; }

.cm-foot { display: flex; flex-wrap: wrap; gap: 4px; border-top: 1px solid #eef1f5; padding-top: 6px; }
.cm-act { border: 0; background: transparent; font: inherit; font-size: 14px; color: #475569; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.cm-act:hover { background: #f1f5f9; }
.cm-react.on { background: #fff3d6; color: #0f2744; font-weight: 700; }
.cm-share-btn { margin-left: auto; }
.cm-share-box { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 4px; }
.cm-share-box[hidden] { display: none; }
.cm-share-link { font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 8px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; color: #fff; }
.cm-share-link.wa { background: #25d366; }
.cm-share-link.fb { background: #1877f2; }
.cm-share-link.li { background: #0a66c2; }
.cm-share-link.x { background: #111; }
.cm-share-link.tg { background: #229ed9; }
.cm-share-link.cm-copy { background: #e2e8f0; color: #0f2744; }

.cm-comments { border-top: 1px solid #eef1f5; margin-top: 4px; padding: 10px 0 6px; }
.cm-comments[hidden] { display: none; }
.cm-loading, .cm-none { color: #64748b; font-size: 14px; padding: 6px 0; }
.cm-form { margin-bottom: 10px; }
.cm-form textarea { width: 100%; box-sizing: border-box; border: 1.5px solid #d6dde7; border-radius: 10px; padding: 9px 11px; font: inherit; font-size: 15px; resize: vertical; min-height: 44px; }
.cm-form textarea:focus { outline: none; border-color: #e8a020; }
.cm-form-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.cm-form-note { font-size: 12px; color: #94a3b8; }
.cm-login-link { display: inline-block; font-weight: 700; color: #0f2744; background: #fff3d6; padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.cm-btn { display: inline-block; border: 1.5px solid #0f2744; background: #fff; color: #0f2744; font: inherit; font-size: 14px; font-weight: 700; padding: 8px 16px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.cm-btn-primary { background: #e8a020; border-color: #e8a020; color: #0f2744; }
.cm-btn[disabled] { opacity: .6; cursor: default; }

.cm-c { display: flex; gap: 10px; padding: 8px 0; }
.cm-c-av { width: 32px; height: 32px; border-radius: 50%; background: #e2e8f0; color: #0f2744; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; overflow: hidden; font-size: 14px; }
.cm-c-av img { width: 100%; height: 100%; object-fit: cover; }
.cm-c-av.logo { background: #0f2744; }
.cm-c-av.logo img { width: 100%; height: 100%; object-fit: cover; }
.cm-c-main { flex: 1 1 auto; min-width: 0; }
.cm-c-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.cm-c-badge { font-size: 11px; font-weight: 700; color: #fff; background: #1d4ed8; padding: 1px 7px; border-radius: 999px; }
.cm-c-pin { font-size: 11px; color: #92400e; }
.cm-c-ago { font-size: 12px; color: #94a3b8; }
.cm-c-body { font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; margin: 2px 0; }
.cm-c.team > .cm-c-main > .cm-c-body { background: #f0f6ff; border-radius: 8px; padding: 6px 9px; }
.cm-c-acts { display: flex; gap: 12px; }
.cm-link-btn { border: 0; background: none; padding: 2px 0; font: inherit; font-size: 13px; color: #64748b; cursor: pointer; font-weight: 600; }
.cm-link-btn:hover { color: #0f2744; }
.cm-link-btn[disabled] { cursor: default; color: #94a3b8; }
.cm-replies { margin-left: 42px; }
.cm-replies .cm-replies { display: none; }
.cm-reply-holder .cm-form { margin-top: 6px; }

.cm-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #0f2744; color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; opacity: 0; transition: all .25s; z-index: 9999; max-width: 90vw; font-family: var(--font-body); }
.cm-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 640px) {
  .cm-hero h1 { font-size: 26px; }
  .cm-post { padding: 14px 12px 6px; border-radius: 12px; }
  .cm-replies { margin-left: 28px; }
}
