/* =========================================================
   TaroSports v2 - Trung tâm chính sách
   Class tiện ích cho biên tập viên (dùng trong CKEditor):
   .cs-box-info / .cs-box-warn / .cs-box-ok, .cs-steps, .cs-check
   ========================================================= */

/* ---------- Hero ---------- */
.cs-hero
{
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 190px;
	padding: 32px 48px;
	border-radius: var(--tr-radius);
	color: #fff;
	background:
		radial-gradient(circle at 85% 40%, rgba(227, 6, 19, .55) 0, rgba(227, 6, 19, 0) 38%),
		linear-gradient(115deg, #071D49 0%, #0A2A66 55%, #0A3FA5 100%);
}

.cs-hero::before
{
	content: '';
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 28px 28px;
	-webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 80%);
	mask-image: linear-gradient(90deg, transparent 35%, #000 80%);
}

.cs-hero__txt
{
	position: relative;
	z-index: 1;
}

.tr-body .cs-hero__title
{
	margin: 0 0 6px;
	font-size: 40px;
	font-weight: 800;
	line-height: 1.1;
	text-transform: uppercase;
}

.tr-body .cs-hero__slogan
{
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 600;
}

.cs-hero__slogan span
{
	color: var(--tr-red);
	margin: 0 4px;
}

.tr-body .cs-hero__desc
{
	margin: 0;
	font-size: 16px;
	color: rgba(255, 255, 255, .85);
}

.cs-hero__icon
{
	position: relative;
	z-index: 1;
	flex: none;
	width: 150px;
	height: 150px;
	margin-right: 24px;
	fill: rgba(10, 63, 165, .35);
	stroke: #fff;
	stroke-width: 1.1;
	stroke-linecap: round;
	stroke-linejoin: round;
	filter: drop-shadow(0 0 18px rgba(80, 150, 255, .7));
}

/* ---------- Lối tắt chính sách ---------- */
.cs-quick
{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	margin: 20px 0 24px;
}

.cs-quick__item
{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 118px;
	padding: 16px 10px;
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-radius);
	background: #fff;
	box-shadow: var(--tr-shadow);
	text-align: center;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}

.cs-quick__item:hover
{
	transform: translateY(-3px);
	border-color: var(--tr-navy);
	box-shadow: var(--tr-shadow-hover);
}

.cs-quick__item.is-active
{
	border: 2px solid var(--tr-blue);
	background: var(--tr-blue-50);
}

.cs-quick__ico .tr-i
{
	width: 40px;
	height: 40px;
	color: var(--tr-navy);
	stroke-width: 1.5;
}

.cs-quick__item.is-active .cs-quick__ico .tr-i
{
	color: var(--tr-red);
}

.cs-quick__ten
{
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tr-navy);
}

/* ---------- Bố cục 2 cột ---------- */
.cs-layout
{
	display: grid;
	grid-template-columns: 290px minmax(0, 1fr);
	grid-template-areas: "side main";
	gap: 24px;
	align-items: start;
}

.cs-main
{
	grid-area: main;
	padding: 32px 36px;
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-radius);
	background: #fff;
	box-shadow: var(--tr-shadow);
}

.cs-side
{
	grid-area: side;
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: sticky;
	top: 88px;
}

.cs-main__head
{
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--tr-line);
}

.cs-main__title
{
	font-size: 30px;
	font-weight: 800 !important;
	color: var(--tr-navy);
	text-transform: uppercase;
}

.tr-body .cs-main__date
{
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--tr-muted);
}

.cs-main__date .tr-i
{
	width: 16px;
	height: 16px;
}

/* ---------- Khối cột trái ---------- */
.cs-box
{
	padding: 20px;
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-radius);
	background: #fff;
	box-shadow: var(--tr-shadow);
}

.cs-box__title
{
	font-size: 18px;
	font-weight: 800 !important;
	color: var(--tr-navy);
	text-transform: uppercase;
	margin-bottom: 12px !important;
}

.cs-menu ul
{
	list-style: none;
	margin: 0 -20px;
	padding: 0;
}

.cs-menu a
{
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 8px 20px;
	border-left: 3px solid transparent;
	font-size: 15px;
	line-height: 1.35;
	color: var(--tr-text);
}

.cs-menu a span
{
	flex: 1;
}

.cs-menu a .tr-i
{
	color: var(--tr-navy);
}

.cs-menu .cs-menu__arrow
{
	width: 16px;
	height: 16px;
	color: var(--tr-muted);
}

.cs-menu a:hover
{
	background: var(--tr-bg-soft);
}

.tr-body .cs-menu a.is-active
{
	border-left-color: var(--tr-navy);
	background: var(--tr-blue-50);
	color: var(--tr-navy);
	font-weight: 700;
}

.tr-body .cs-contact__sub
{
	margin: -4px 0 12px;
	font-size: 14px;
	color: var(--tr-muted);
}

.cs-contact__list
{
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.cs-contact__list li
{
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 0;
	font-size: 15px;
	word-break: break-word;
}

.cs-contact__list .tr-i
{
	color: var(--tr-navy);
	margin-top: 2px;
}

.cs-contact__so
{
	font-weight: 800;
	font-size: 17px;
	color: var(--tr-navy);
}

.cs-contact__list small
{
	display: block;
	font-size: 13px;
	color: var(--tr-muted);
}

.cs-update
{
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	color: var(--tr-muted);
}

.cs-update .tr-i
{
	width: 28px;
	height: 28px;
	color: var(--tr-navy);
}

.cs-update b
{
	display: block;
	font-size: 16px;
	color: var(--tr-navy);
}

/* ---------- Nội dung chính sách ---------- */
.cs-noi-dung
{
	font-size: 16px;
	line-height: 1.7;
}

.cs-noi-dung h1,
.cs-noi-dung h2
{
	font-size: 20px;
	text-transform: uppercase;
	margin: 28px 0 10px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--tr-blue-50);
}

.cs-noi-dung h3,
.cs-noi-dung .tr-prose__h
{
	font-size: 18px;
	margin: 22px 0 8px;
	color: var(--tr-navy);
}

/* Hộp thông tin: <div class="cs-box-info"><strong>Tiêu đề</strong>Nội dung</div> */
.cs-box-info,
.cs-box-warn,
.cs-box-ok
{
	position: relative;
	margin: 14px 0 18px;
	padding: 14px 18px 14px 58px;
	border: 1px solid;
	border-radius: var(--tr-radius-sm);
	font-size: 15px;
	line-height: 1.55;
}

.cs-box-info::before,
.cs-box-warn::before,
.cs-box-ok::before
{
	position: absolute;
	left: 16px;
	top: 14px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: #fff;
	font-weight: 800;
	font-size: 16px;
	line-height: 28px;
	text-align: center;
}

.cs-box-info
{
	border-color: #BFD3F5;
	background: var(--tr-blue-50);
}

.cs-box-info::before
{
	content: 'i';
	background: var(--tr-blue);
	font-style: italic;
}

.cs-box-warn
{
	border-color: #F6C1C4;
	background: var(--tr-red-50);
}

.cs-box-warn::before
{
	content: '!';
	background: var(--tr-red);
}

.cs-box-ok
{
	border-color: #B9E3C9;
	background: var(--tr-green-50);
}

.cs-box-ok::before
{
	content: '✓';
	background: var(--tr-green);
}

.cs-box-info > strong:first-child,
.cs-box-warn > strong:first-child,
.cs-box-ok > strong:first-child,
.cs-box-info > p:first-child > strong:first-child,
.cs-box-warn > p:first-child > strong:first-child,
.cs-box-ok > p:first-child > strong:first-child
{
	display: block;
	margin-bottom: 2px;
	font-size: 16px;
	text-transform: uppercase;
}

.cs-box-info > strong:first-child
{
	color: var(--tr-blue);
}

.cs-box-warn > strong:first-child,
.cs-box-warn > p:first-child > strong:first-child
{
	color: var(--tr-red);
}

.cs-box-ok > strong:first-child,
.cs-box-ok > p:first-child > strong:first-child
{
	color: var(--tr-green);
}

.cs-box-info > p:last-child,
.cs-box-warn > p:last-child,
.cs-box-ok > p:last-child
{
	margin-bottom: 0;
}

/* Quy trình đánh số ngang: <ol class="cs-steps"><li><strong>Bước</strong>Mô tả</li>...</ol> */
.tr-prose ol.cs-steps
{
	counter-reset: cs-buoc;
	list-style: none;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 12px;
	margin: 16px 0 22px;
	padding: 0;
}

.tr-prose ol.cs-steps > li
{
	counter-increment: cs-buoc;
	position: relative;
	margin: 0;
	padding: 48px 4px 0;
	text-align: center;
	font-size: 14px;
	line-height: 1.45;
	color: var(--tr-muted);
}

.tr-prose ol.cs-steps > li::before
{
	content: counter(cs-buoc);
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 1;
	width: 34px;
	height: 34px;
	margin-left: -17px;
	border-radius: 50%;
	background: var(--tr-navy);
	color: #fff;
	font-weight: 800;
	line-height: 34px;
	text-align: center;
}

.tr-prose ol.cs-steps > li:last-child::before
{
	background: var(--tr-red);
}

.tr-prose ol.cs-steps > li::after
{
	content: '';
	position: absolute;
	top: 17px;
	left: calc(50% + 22px);
	width: calc(100% - 32px);
	border-top: 2px dashed #A9B5C6;
}

.tr-prose ol.cs-steps > li:last-child::after
{
	display: none;
}

.tr-prose ol.cs-steps > li strong,
.tr-prose ol.cs-steps > li b
{
	display: block;
	margin-bottom: 4px;
	font-size: 15px;
	color: var(--tr-navy);
}

/* Lưới điều kiện có dấu tick: <ul class="cs-check"><li>Điều kiện</li>...</ul> */
.tr-prose ul.cs-check
{
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 10px;
	margin: 14px 0 20px;
	padding: 0;
}

.tr-prose ul.cs-check > li
{
	position: relative;
	margin: 0;
	padding: 12px 12px 12px 42px;
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-radius-sm);
	background: #fff;
	font-size: 14px;
	line-height: 1.45;
}

.tr-prose ul.cs-check > li::before
{
	content: '✓';
	position: absolute;
	left: 12px;
	top: 12px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--tr-green);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 20px;
	text-align: center;
}

/* ---------- Câu hỏi thường gặp ---------- */
.cs-faq
{
	margin-top: 24px;
}

.cs-faq__head
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.cs-faq__head .cs-box__title
{
	margin-bottom: 0 !important;
}

.cs-faq__list
{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 16px;
	margin-top: 12px;
	align-items: start;
}

.cs-faq__item
{
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-radius-sm);
	background: #fff;
}

.cs-faq__item summary
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
	padding: 10px 14px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.cs-faq__item summary::-webkit-details-marker
{
	display: none;
}

.cs-faq__item summary .tr-i
{
	width: 18px;
	height: 18px;
	color: var(--tr-muted);
	transition: transform .2s;
}

.cs-faq__item[open]
{
	border-color: var(--tr-navy);
}

.cs-faq__item[open] summary .tr-i
{
	transform: rotate(180deg);
}

.cs-faq__tl
{
	padding: 0 14px 12px;
	font-size: 15px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991px)
{
	.cs-hero
	{
		padding: 28px 28px;
	}

	.cs-hero__title
	{
		font-size: 32px !important;
	}

	.cs-hero__icon
	{
		width: 110px;
		height: 110px;
		margin-right: 0;
	}

	.cs-layout
	{
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"main"
			"side";
	}

	.cs-side
	{
		position: static;
	}
}

@media (max-width: 767px)
{
	.cs-hero
	{
		min-height: 0;
		padding: 22px 20px;
	}

	.cs-hero__title
	{
		font-size: 25px !important;
	}

	.tr-body .cs-hero__slogan
	{
		font-size: 17px;
	}

	.tr-body .cs-hero__desc
	{
		font-size: 14px;
	}

	.cs-hero__icon
	{
		position: absolute;
		right: -10px;
		bottom: -10px;
		width: 110px;
		height: 110px;
		opacity: .35;
	}

	.cs-quick
	{
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 16px;
		scrollbar-width: none;
		margin: 16px -16px 20px;
		padding: 4px 16px 8px;
	}

	.cs-quick::-webkit-scrollbar
	{
		display: none;
	}

	.cs-quick__item
	{
		flex: 0 0 116px;
		min-height: 104px;
		scroll-snap-align: start;
	}

	.cs-quick__ico .tr-i
	{
		width: 32px;
		height: 32px;
	}

	.cs-quick__ten
	{
		font-size: 13px;
	}

	.cs-main
	{
		padding: 20px 16px;
	}

	.cs-main__title
	{
		font-size: 22px;
	}

	.tr-prose ol.cs-steps
	{
		grid-auto-flow: row;
		gap: 0;
	}

	.tr-prose ol.cs-steps > li
	{
		padding: 4px 0 18px 48px;
		text-align: left;
	}

	.tr-prose ol.cs-steps > li::before
	{
		left: 0;
		margin-left: 0;
	}

	.tr-prose ol.cs-steps > li::after
	{
		top: 38px;
		left: 17px;
		width: 0;
		height: calc(100% - 38px);
		border-top: 0;
		border-left: 2px dashed #A9B5C6;
	}

	.cs-faq__list
	{
		grid-template-columns: minmax(0, 1fr);
	}

	.cs-box
	{
		padding: 16px;
	}

	.cs-menu ul
	{
		margin: 0 -16px;
	}

	.cs-menu a
	{
		padding: 8px 16px;
	}
}
