/* ==========================================================================
   Khối thông tin trang chủ — [caodat_why] + [caodat_faq]  (inc/shortcodes-info.php)
   Lưới dùng row/col của Flatsome; breakpoint theo Flatsome: small < 550, medium 550–849, large ≥ 850.
   ========================================================================== */

/* ---------- Vì sao chọn ---------- */
.caodat-why {
	--ci-accent: #14b8a6;
	--ci-title: #14b8a6;
	padding: 48px 0;
}
.caodat-why__title {
	margin: 0 0 32px;
	color: var(--ci-title);
	font-size: clamp(24px, 3vw, 38px);
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}
/* .row.row-collapse.large-columns-5.medium-columns-3.small-columns-1 */
.caodat-why__card.row {
	max-width: none;
	margin: 0;
	padding: 36px 8px;
	border: 1px solid #eef2f6;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.08);
}
.caodat-why__col { padding-bottom: 0 !important; }
.caodat-why__item {
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 100%;
	padding: 4px 22px !important;
}
.caodat-why__col + .caodat-why__col .caodat-why__item { border-left: 1px solid #e8edf2; }
.caodat-why__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 15px;
	background: color-mix(in srgb, var(--ci-accent) 12%, #fff);
	color: var(--ci-accent);
}
.caodat-why__icon svg { width: 24px; height: 24px; }
.caodat-why__item-title {
	margin: 0 0 6px;
	color: #0f172a;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
}
.caodat-why__text {
	margin: 0;
	color: #64748b;
	font-size: 15px;
	line-height: 1.6;
}

/* Khối rộng ≥ 1500px (row full-width, như mẫu): icon nằm cạnh chữ. Đo theo độ rộng KHỐI, không theo màn hình */
.caodat-why { container-type: inline-size; }
@container (min-width: 1500px) {
	.caodat-why__item { flex-direction: row; gap: 18px; padding: 4px 28px !important; }
	.caodat-why__icon { width: 60px; height: 60px; border-radius: 16px; }
	.caodat-why__icon svg { width: 26px; height: 26px; }
	.caodat-why__item-title { margin-top: 4px; font-size: 19px; }
	.caodat-why__text { font-size: 16px; }
}

/* medium: 3 cột, có hàng thứ 2 */
@media (min-width: 550px) and (max-width: 849px) {
	.caodat-why__card.row { row-gap: 28px; }
	.caodat-why__col:nth-child(3n + 1) .caodat-why__item { border-left: 0; }
}

/* small: 1 cột, icon cạnh chữ, kẻ ngang */
@media (max-width: 549px) {
	.caodat-why { padding: 36px 0; }
	.caodat-why__title { margin-bottom: 22px; }
	.caodat-why__card.row { padding: 6px 20px; border-radius: 20px; }
	.caodat-why__item { flex-direction: row; gap: 14px; padding: 18px 0 !important; border-left: 0 !important; }
	.caodat-why__col + .caodat-why__col .caodat-why__item { border-top: 1px solid #eef2f6; }
	.caodat-why__icon { width: 50px; height: 50px; border-radius: 14px; }
	.caodat-why__icon svg { width: 22px; height: 22px; }
	.caodat-why__item-title { margin-top: 2px; font-size: 17px; }
}

/* ---------- Thông tin cần biết (FAQ) ---------- */
.caodat-faq {
	--ci-accent: #0e9aa7;
	padding: 56px 0;
}
.caodat-faq__title {
	margin: 0;
	color: #1e3a5f;
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.15;
	text-align: center;
	text-transform: none;
}
.caodat-faq__subtitle {
	margin: 14px 0 0;
	color: #64748b;
	font-size: 17px;
	text-align: center;
}
/* .row > .col.large-6.small-12 (lẻ trái, chẵn phải) */
.caodat-faq__grid.row { margin-top: 44px; }
.caodat-faq--cols-1 .caodat-faq__grid.row { max-width: 900px; }
.caodat-faq__col > .col-inner { display: flex; flex-direction: column; gap: 30px; }

.caodat-faq__item {
	margin: 0;
	border: 1px solid #eef2f6;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 10px 30px -14px rgba(15, 23, 42, 0.1);
}
.caodat-faq__q {
	display: flex;
	align-items: center;
	gap: 26px;
	padding: 30px 36px;
	cursor: pointer;
	list-style: none;
}
.caodat-faq__q::-webkit-details-marker { display: none; }
.caodat-faq__q::marker { content: ""; }
.caodat-faq__num {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--ci-accent) 14%, #fff);
	color: var(--ci-accent);
	font-size: 18px;
	font-weight: 700;
}
.caodat-faq__q-text {
	flex: 1;
	color: #1e3a5f;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.4;
}
.caodat-faq__chev {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	color: var(--ci-accent);
	transition: transform 0.25s ease;
}
.caodat-faq__item:not([open]) .caodat-faq__chev { transform: rotate(180deg); }
.caodat-faq__a {
	padding: 0 36px 34px 112px;   /* thẳng hàng với chữ câu hỏi */
	color: #475569;
	font-size: 17px;
	line-height: 1.8;
}
.caodat-faq__a > :last-child,
.caodat-faq__a p:last-child { margin-bottom: 0; }
.caodat-faq__a ol,
.caodat-faq__a ul { margin: 0 0 0 1.2em; }
.caodat-faq__a li { margin-bottom: 6px; }

/* Hộp vàng (vd số tài khoản) */
.caodat-faq__note {
	padding: 22px 26px;
	border: 1px solid #fde7a8;
	border-radius: 10px;
	background: #fffcf0;
	color: #334155;
}
.caodat-faq__note p { margin: 0; line-height: 1.75; }
.caodat-faq__note strong { color: #1f2937; font-size: 1.08em; font-weight: 800; letter-spacing: 0.01em; }
.caodat-faq__warning {
	margin: 12px 0 0 !important;
	color: #d97706;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.caodat-faq__warning::before { content: "\26A0\FE0F  "; }

@media (max-width: 1199px) {
	.caodat-faq__q { gap: 18px; padding: 24px 24px; }
	.caodat-faq__a { padding: 0 24px 26px 92px; }
	.caodat-faq__col > .col-inner { gap: 24px; }
}

/* < 850: 1 cột (col small-12) nhưng đúng thứ tự 1,2,3… — col/col-inner "trong suốt", item mang style="order:n" */
@media (max-width: 849px) {
	.caodat-faq__grid.row { margin-top: 28px; padding: 0 15px; row-gap: 16px; }
	.caodat-faq__col,
	.caodat-faq__col > .col-inner { display: contents; }
	.caodat-faq__item { width: 100%; }
}
@media (max-width: 549px) {
	.caodat-faq { padding: 40px 0; }
	.caodat-faq__subtitle { font-size: 15px; }
	.caodat-faq__item { border-radius: 18px; }
	.caodat-faq__q { gap: 14px; padding: 18px 18px; }
	.caodat-faq__num { width: 38px; height: 38px; font-size: 15px; }
	.caodat-faq__q-text { font-size: 16px; }
	.caodat-faq__a { padding: 0 18px 20px 18px; font-size: 15px; line-height: 1.7; }
	.caodat-faq__note { padding: 16px 18px; }
}

/* ==========================================================================
   Hero slider controls (caodat_hero) - gọn lại
   Flatsome nạp flatsome.css SAU tailwind.css và style mọi <button>
   (padding 0 1.2em, margin 0 1em 1em 0, min-height 2.5em) -> chấm/nút bị phình
   thành hình tròn 39px và dàn lưới 3x3. Reset lại trong phạm vi .caodat-hero.
   ========================================================================== */
.caodat-hero button {
	margin: 0;
	padding: 0;
	min-height: 0;
	min-width: 0;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: none;
}

/* Mũi tên trái / phải */
.caodat-hero .caodat-hero-prev,
.caodat-hero .caodat-hero-next {
	width: 34px;
	height: 34px;
	border-radius: 999px;
}
.caodat-hero .caodat-hero-prev svg,
.caodat-hero .caodat-hero-next svg {
	width: 16px;
	height: 16px;
}

/* Hàng dưới nằm 1 dòng: khối căn giữa bằng left:50% chỉ được rộng 50% màn hình -> nút tạm dừng bị rớt dòng */
.caodat-hero div:has(> .caodat-hero-dots) {
	flex-wrap: nowrap;
	width: max-content;
}

/* Mobile: mũi tên lên cao hơn, khỏi đè chip khu vực / tiêu đề */
@media (max-width: 639px) {
	.caodat-hero div:has(> .caodat-hero-prev),
	.caodat-hero div:has(> .caodat-hero-next) {
		top: 36%;
	}
}

/* Hàng dưới: 01/08 + chấm + tạm dừng, cùng chiều cao 28px */
.caodat-hero .caodat-hero-counter {
	font-size: 11px;
	letter-spacing: 0.04em;
}
.caodat-hero .caodat-hero-dots {
	flex-wrap: nowrap;
	gap: 6px;
	height: 28px;
	padding: 0 12px;
}
.caodat-hero .caodat-hero-dots button {
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-radius: 999px;
	transition: width 0.3s ease, background-color 0.3s ease;
}
.caodat-hero .caodat-hero-dots button[aria-current="true"] {
	width: 20px;
}
.caodat-hero .caodat-hero-autoplay-toggle {
	width: 28px;
	height: 28px;
	border-radius: 999px;
}
.caodat-hero .caodat-hero-autoplay-toggle svg {
	width: 12px;
	height: 12px;
}

/* Tablet */
@media (min-width: 640px) {
	.caodat-hero .caodat-hero-prev,
	.caodat-hero .caodat-hero-next { width: 40px; height: 40px; }
	.caodat-hero .caodat-hero-dots { gap: 8px; height: 32px; padding: 0 14px; }
	.caodat-hero .caodat-hero-dots button { width: 8px; height: 8px; }
	.caodat-hero .caodat-hero-dots button[aria-current="true"] { width: 26px; }
	.caodat-hero .caodat-hero-autoplay-toggle { width: 32px; height: 32px; }
	.caodat-hero .caodat-hero-counter { font-size: 12px; }
}

/* Desktop */
@media (min-width: 1024px) {
	.caodat-hero .caodat-hero-prev,
	.caodat-hero .caodat-hero-next { width: 44px; height: 44px; }
	.caodat-hero .caodat-hero-prev svg,
	.caodat-hero .caodat-hero-next svg { width: 18px; height: 18px; }
}
