/* Nghiên cứu cùng giảng viên — design tokens taken from soe-understrap (home page sections & news cards) */
.nccgv, .nccgv-dialog {
	--nc-heading: #123b3b;     /* .news-section-title */
	--nc-primary: var(--bs-primary, #800000);
	--nc-gold: #eca123;        /* .soe-underline */
	--nc-ink: #212529;
	--nc-muted: #4f6262;       /* .text-muted in sections */
	--nc-line: #dde8e8;        /* .news-card border */
	--nc-soft: #f2f7f7;        /* section background */
	--nc-radius: 12px;
	/* Type scale aligned with the theme: 14 / 16 / 18 / 24 / 40px, weights 400 / 700 / 800 only */
	--nc-fs-sm: .875rem;
	--nc-fs-base: 1rem;
	--nc-fs-lg: 1.125rem;
	--nc-fs-xl: 1.5rem;
	--nc-fs-2xl: 2.5rem;
	font-size: var(--nc-fs-base);
	line-height: 1.6;
	--nc-shadow: 0 2px 8px rgba(18, 59, 59, .06);
	--nc-shadow-hover: 0 12px 32px -6px rgba(127, 127, 127, .3);
	color: var(--nc-ink);
	font-family: inherit;
}
.nccgv { margin: 0 auto 3rem; }
.nccgv *, .nccgv *::before, .nccgv *::after,
.nccgv-dialog *, .nccgv-dialog *::before, .nccgv-dialog *::after { box-sizing: border-box; }
.nccgv-card[hidden] { display: none; }
.nccgv h2, .nccgv h3, .nccgv h4, .nccgv button, .nccgv input,
.nccgv-dialog h3, .nccgv-dialog h4, .nccgv-dialog button { font-family: inherit; }
.nccgv-icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* Section titles — same as .news-section-title + .soe-underline */
.nccgv-section-title {
	text-align: center; color: var(--nc-heading); font-weight: 800; letter-spacing: 1px;
	text-transform: uppercase; font-size: var(--nc-fs-2xl); line-height: 1.2; margin: 0 0 .75rem;
}
.nccgv-section-title--sm { font-size: var(--nc-fs-xl); }
.nccgv .nccgv-underline { width: 240px; max-width: 60%; height: 3px; background: var(--nc-gold); margin: 0 auto 1.25rem; }
.nccgv .nccgv-underline--sm { width: 120px; }

/* Intro */
.nccgv-intro { text-align: center; padding: 1rem 0 2.5rem; }
.nccgv-intro__lead { color: var(--nc-muted); line-height: 1.7; max-width: 760px; margin: 0 auto 2rem; }
.nccgv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); justify-content: center; gap: 1rem; margin: 0; }
.nccgv-stats > div { background: #fff; border: 1px solid var(--nc-line); border-radius: var(--nc-radius); box-shadow: var(--nc-shadow); padding: 1.1rem .75rem; }
.nccgv-stats dd { margin: 0; font-size: var(--nc-fs-2xl); font-weight: 800; line-height: 1.1; color: var(--nc-heading); font-variant-numeric: tabular-nums; }
.nccgv-stats dt { margin-top: .25rem; font-size: var(--nc-fs-sm); font-weight: 700; text-transform: uppercase; color: var(--nc-primary); }

/* Steps — full-width tinted band like home sections */
.nccgv-steps { background: var(--nc-soft); border-radius: var(--nc-radius); padding: 2.5rem 1.5rem; margin: 0 0 2.5rem; }
.nccgv-steps ol { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.nccgv-steps li { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--nc-line); border-radius: var(--nc-radius); box-shadow: var(--nc-shadow); line-height: 1.6; font-size: var(--nc-fs-base); color: var(--nc-muted); text-align: left; }
.nccgv-steps li > span { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--nc-heading); color: #fff; font-weight: 800; display: grid; place-items: center; }
.nccgv-steps strong { display: block; color: var(--nc-heading); margin-bottom: .2rem; }

/* Toolbar */
.nccgv-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.nccgv-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.nccgv-filters button {
	border: 1px solid var(--nc-line); background: #fff; color: var(--nc-heading);
	padding: .45rem 1rem; border-radius: 999px; font-size: var(--nc-fs-sm); font-weight: 700; cursor: pointer;
	display: inline-flex; gap: .45rem; align-items: center; min-height: 40px; font-family: inherit;
	transition: background-color .15s, color .15s, border-color .15s;
}
.nccgv-filters button span { background: var(--nc-soft); border-radius: 999px; padding: 0 .5rem; font-size: var(--nc-fs-sm); font-weight: 400; font-variant-numeric: tabular-nums; }
.nccgv-filters button:hover { border-color: var(--nc-heading); }
.nccgv-filters button.is-active { background: var(--nc-heading); border-color: var(--nc-heading); color: #fff; }
.nccgv-filters button.is-active span { background: rgba(255,255,255,.2); }
.nccgv-search { position: relative; flex: 1 1 260px; max-width: 340px; margin: 0; }
.nccgv-search .nccgv-icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--nc-muted); }
.nccgv-search input { width: 100%; min-height: 40px; padding: .45rem 1rem .45rem 2.4rem; border: 1px solid var(--nc-line); border-radius: 999px; font-size: var(--nc-fs-base); background: #fff; color: var(--nc-ink); font-family: inherit; }
.nccgv-search input:focus { outline: none; border-color: var(--nc-heading); box-shadow: 0 0 0 3px rgba(18,59,59,.12); }

/* Cards — same look as .news-card */
.nccgv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.nccgv-card {
	display: flex; flex-direction: column; gap: .6rem;
	background: #fff; border: 1px solid var(--nc-line); border-radius: var(--nc-radius); box-shadow: var(--nc-shadow);
	padding: 1.25rem 1.25rem 1rem;
	transition: box-shadow .2s, transform .2s;
}
.nccgv-card:hover { box-shadow: var(--nc-shadow-hover); transform: translateY(-3px); }
.nccgv-card__title { font-size: var(--nc-fs-lg); line-height: 1.4; margin: 0; font-weight: 700; color: var(--nc-heading); }
.nccgv-card--closed .nccgv-card__title { color: var(--nc-muted); }
.nccgv-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: var(--nc-fs-sm); color: var(--nc-muted); }
.nccgv-meta li { display: flex; gap: .5rem; align-items: center; }
.nccgv-meta .nccgv-icon { color: var(--nc-gold); }
.nccgv-card__excerpt { margin: .15rem 0 0; color: var(--nc-muted); line-height: 1.6; font-size: var(--nc-fs-base); flex: 1; }
.nccgv-card__actions { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: .5rem; padding-top: .6rem; border-top: 1px solid var(--nc-line); font-size: var(--nc-fs-sm); }
.nccgv-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--nc-primary) !important; font-weight: 700; text-decoration: none; min-height: 32px; }
.nccgv-link:hover { text-decoration: underline; }
.nccgv-more { border: 0; background: none; padding: .25rem 0; min-height: 32px; color: var(--nc-heading); font-weight: 700; cursor: pointer; font-family: inherit; font-size: inherit; display: inline-flex; gap: .4rem; align-items: center; }
.nccgv-more .news-card-arrow { transition: transform .2s; }
.nccgv-more:hover .news-card-arrow, .nccgv-card:hover .nccgv-more .news-card-arrow { transform: translateX(4px); }

/* Status label — like the uppercase category label on news cards */
.nccgv-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--nc-fs-sm); font-weight: 700; text-transform: uppercase; }
.nccgv-badge::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.nccgv-badge--open { color: #198754; }
.nccgv-badge--upcoming { color: #b77a0c; }
.nccgv-badge--closed { color: #7b8a8a; }
.nccgv-badge--unknown { color: var(--nc-primary); }

/* Buttons (dialog) */
.nccgv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
	min-height: 42px; padding: .5rem 1.2rem; border-radius: 6px; font-size: var(--nc-fs-base); font-weight: 700;
	text-decoration: none; cursor: pointer; border: 1px solid transparent; line-height: 1.2; font-family: inherit;
	transition: background-color .15s;
}
.nccgv-btn--primary { background: var(--nc-primary); color: #fff !important; }
.nccgv-btn--primary:hover { background: #5c0000; }
.nccgv-btn:focus-visible, .nccgv-filters button:focus-visible, .nccgv-more:focus-visible, .nccgv-link:focus-visible, .nccgv-dialog__close:focus-visible { outline: 3px solid var(--nc-gold); outline-offset: 2px; }

.nccgv-empty, .nccgv-noresult { text-align: center; padding: 2.5rem 1rem; color: var(--nc-muted); border: 1px dashed var(--nc-line); border-radius: var(--nc-radius); }

/* Dialog */
.nccgv-dialog { border: 0; padding: 0; border-radius: 16px; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 24px 60px rgba(18,59,59,.25); color: var(--nc-ink); }
.nccgv-dialog::backdrop { background: rgba(18, 59, 59, .55); }
.nccgv-dialog[open] { animation: nccgv-in .2s ease-out; }
@keyframes nccgv-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.nccgv-dialog__inner { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.nccgv-dialog__head { padding: 1.5rem 3.5rem 1.1rem 1.6rem; position: relative; background: var(--nc-soft); border-bottom: 3px solid var(--nc-gold); }
.nccgv-dialog__head h3 { margin: .5rem 0 0; font-size: var(--nc-fs-xl); line-height: 1.35; font-weight: 800; color: var(--nc-heading); }
.nccgv-dialog__close { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--nc-muted); font-size: var(--nc-fs-lg); }
.nccgv-dialog__close:hover { background: rgba(18,59,59,.08); color: var(--nc-heading); }
.nccgv-dialog__body { padding: 1.4rem 1.6rem; overflow-y: auto; line-height: 1.7; }
.nccgv-dialog__body h4 { font-size: var(--nc-fs-sm); text-transform: uppercase; color: var(--nc-primary); margin: 1.5rem 0 .5rem; font-weight: 700; }
.nccgv-prose p:last-child, .nccgv-req p:last-child { margin-bottom: 0; }
.nccgv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; }
.nccgv-facts > div { border: 1px solid var(--nc-line); border-radius: 10px; padding: .7rem .9rem; }
.nccgv-facts span { display: block; font-size: var(--nc-fs-sm); color: var(--nc-muted); }
.nccgv-facts strong { font-weight: 700; color: var(--nc-heading); word-break: break-word; }
.nccgv-facts a { color: var(--nc-primary); }
.nccgv-req { display: flex; gap: .65rem; background: var(--nc-soft); border-radius: 10px; padding: .9rem 1rem; }
.nccgv-req .nccgv-icon { color: #198754; margin-top: .35rem; }
.nccgv-dialog__foot { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; padding: 1rem 1.6rem; border-top: 1px solid var(--nc-line); }
.nccgv-dialog__foot p { margin: 0; color: var(--nc-muted); font-size: var(--nc-fs-sm); }
body.nccgv-lock { overflow: hidden; }

/* Responsive */
@media (max-width: 991px) {
	.nccgv-steps ol { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
	.nccgv-stats { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
	.nccgv-section-title { font-size: var(--nc-fs-xl); }
	.nccgv-stats dd { font-size: var(--nc-fs-xl); }
	.nccgv-steps { padding: 1.75rem 1rem; }
	.nccgv-grid { grid-template-columns: 1fr; }
	.nccgv-search { max-width: none; }
	.nccgv-dialog__head { padding: 1.2rem 3.25rem 1rem 1.2rem; }
	.nccgv-dialog__body, .nccgv-dialog__foot { padding-left: 1.2rem; padding-right: 1.2rem; }
	.nccgv-dialog__foot .nccgv-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.nccgv-card, .nccgv-dialog[open], .nccgv-more .news-card-arrow { transition: none; animation: none; }
	.nccgv-card:hover { transform: none; }
}
