@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400..700&display=swap");
/* CTA trong bài blog — port từ CSS affiliate bên Shopify (style 3), giữ nguyên tên class
   để HTML copy từ bài Shopify dán vào block "Custom HTML" là hiện đúng.
   ponytail: port style 3 (mặc định Crossup) + style 1; cần style 2/4 thì port thêm.
   Đổi màu 1 khối: thêm style="--affiliate-...: #màu" vào thẻ ngoài cùng (kses giữ biến CSS). */
:root {
	--affiliate-main-color: #225aea;
	--affiliate-secondary-color: #225aea;
	--affiliate-text-color: #000;
	--affiliate-text-secondary-color: #fff;
	--affiliate-bg-color: #f9f9fc;
	--affiliate-card-bg-color: #fff;
	--affiliate-btn-text-color: #fff;
	--affiliate-btn-bg-color: #151e3a;
	--affiliate-btn-hover-text-color: #fff;
	--affiliate-btn-hover-bg-color: #434c69;
}

/* Nút chính (navy) — dùng riêng hoặc là .btn-link trong feature banner */
.btn-affiliate-3,
.feature-cta-banner-3 > div .btn-link {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	box-sizing: border-box;
	width: fit-content;
	padding: 12px 16px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%), var(--affiliate-btn-bg-color);
	box-shadow: 0 1px 2px 0 rgba(31, 34, 97, 0.4), 0 0 0 1px rgba(31, 34, 97, 0.8);
	color: var(--affiliate-btn-text-color) !important;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 16px;
	letter-spacing: 0;
	text-decoration: none !important;
	transition: all 0.15s ease-in-out;
}
.btn-affiliate-3 svg path,
.feature-cta-banner-3 > div .btn-link svg path { stroke: var(--affiliate-btn-text-color); transition: all 0.15s ease-in-out; }
.btn-affiliate-3:hover,
.feature-cta-banner-3 > div .btn-link:hover {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%), var(--affiliate-btn-hover-bg-color);
	color: var(--affiliate-btn-hover-text-color) !important;
}

/* Nút trắng vuông (mũi tên) trong partnership banner */
.btn-affiliate-3-white,
.partnership-cta-banner-3 .btn-link {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	height: 40px;
	padding: 12px 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%), #fff;
	box-shadow: 0 1px 2px 0 rgba(31, 34, 97, 0.1);
	color: #151e3a !important;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 16px;
	text-decoration: none !important;
	transition: all 0.15s ease-in-out;
}
.btn-affiliate-3-white:hover,
.partnership-cta-banner-3 .btn-link:hover {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%), #e2e6f3;
}

/* Banner ảnh + tiêu đề + mô tả + nút */
.feature-cta-banner-3 {
	display: flex;
	gap: 40px;
	padding: 24px;
	border-radius: 24px;
	overflow: hidden;
	background: var(--affiliate-bg-color);
	box-shadow: 1px 2px 4px 0 rgba(79, 70, 229, 0.08), 0 8px 16px 0 rgba(79, 70, 229, 0.06);
	color: var(--affiliate-text-color);
	font-family: "Plus Jakarta Sans", sans-serif;
}
.feature-cta-banner-3 img {
	width: 50%;
	aspect-ratio: 336 / 236;
	object-fit: cover;
	border-radius: 24px;
}
.feature-cta-banner-3 > div {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
}
.feature-cta-banner-3 > div .title {
	margin: 0 !important;
	padding: 0 !important;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 24px;
	font-weight: 600;
	line-height: 32px;
}
.feature-cta-banner-3 > div .desc {
	margin: 8px 0 0;
	font-family: "Inter", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
}
.feature-cta-banner-3 > div .btn-link { margin-top: 24px !important; }

/* Dải màu 1 dòng + nút mũi tên */
.partnership-cta-banner-3 {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 24px 40px;
	border-radius: 16px;
	background: var(--affiliate-main-color);
	color: var(--affiliate-text-secondary-color);
}
.partnership-cta-banner-3 .title {
	margin: 0 !important;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 24px;
	font-weight: 600;
	line-height: 32px;
}
.partnership-cta-banner-3 .btn-link { flex-shrink: 0; width: 40px; height: 40px; padding: 0; }

/* Hộp ghi chú: dải màu trái + icon info */
.content-highlight-card-3 {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 16px 16px 16px 68px;
	border: 1px solid #e2e6f3;
	border-radius: 16px;
	overflow: hidden;
	background: var(--affiliate-card-bg-color, #fff);
	color: var(--affiliate-text-color);
	box-shadow: 1px 2px 4px 0 rgba(79, 70, 229, 0.08), 0 8px 16px 0 rgba(79, 70, 229, 0.06);
}
.content-highlight-card-3 * { display: inline; }
.content-highlight-card-3::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 16px;
	height: 100%;
	background: var(--affiliate-main-color);
}
/* Bản Shopify viết `p &::after` nên icon không bao giờ hiện — ở đây sửa cho hiện như Figma.
   Icon nhúng data URI: preview Custom HTML chạy trong iframe origin null, url file bị CORS chặn. */
.content-highlight-card-3::after {
	content: "";
	position: absolute;
	top: 18px;
	left: 36px;
	width: 20px;
	height: 20px;
	background-color: var(--affiliate-main-color);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 8V9M12 11.5V16M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 8V9M12 11.5V16M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.content-highlight-card-3 .title {
	margin: 0 !important;
	font-family: "Inter", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
}
.content-highlight-card-3 .desc {
	margin: 0;
	font-family: "Inter", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
}
.content-highlight-card-3 .desc a { color: inherit; }
.content-highlight-card-3 .desc strong { text-decoration: underline; text-underline-position: from-font; }

@media screen and (max-width: 768px) {
	.btn-affiliate-3 { padding: 12px 24px; font-size: 16px; line-height: 24px; }
	.feature-cta-banner-3 { flex-direction: column; gap: 24px; }
	.feature-cta-banner-3 img { width: 100%; }
	.feature-cta-banner-3 > div { text-align: center; }
	.feature-cta-banner-3 > div .title { font-size: 28px; line-height: 40px; }
	.feature-cta-banner-3 > div .desc { font-size: 18px; line-height: 32px; }
	.feature-cta-banner-3 > div .btn-link { width: 100%; margin-top: 24px !important; padding: 12px 24px; font-size: 16px; line-height: 24px; }
	.partnership-cta-banner-3 { padding: 24px; }
}

/* ===== Style 1 — biến màu gắn vào chính khối -1 để không đè màu style 3 trên :root ===== */
.btn-affiliate-1,
.feature-cta-banner-1,
.partnership-cta-banner-1,
.content-highlight-card-1 {
	--affiliate-main-color: #0042e4;
	--affiliate-secondary-color: #ddd;
	--affiliate-text-color: #232121;
	--affiliate-text-secondary-color: #fff;
	--affiliate-bg-color: #f1f1f1;
	--affiliate-btn-text-color: #fff;
	--affiliate-btn-bg-color: #232121;
}

/* Nút pill đen, hover trong suốt */
.btn-affiliate-1,
.feature-cta-banner-1 > div .btn-link,
.partnership-cta-banner-1 .btn-link {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	width: fit-content;
	height: 48px;
	padding: 16px 24px;
	border: 1px solid var(--affiliate-btn-bg-color);
	border-radius: 100px;
	background: var(--affiliate-btn-bg-color);
	color: var(--affiliate-btn-text-color) !important;
	font-family: "Instrument Sans", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	text-decoration: none !important;
	transition: all 0.15s ease-in-out;
}
.btn-affiliate-1 svg path,
.feature-cta-banner-1 > div .btn-link svg path,
.partnership-cta-banner-1 .btn-link svg path { stroke: var(--affiliate-btn-text-color); transition: all 0.15s ease-in-out; }
.btn-affiliate-1:hover,
.feature-cta-banner-1 > div .btn-link:hover,
.partnership-cta-banner-1 .btn-link:hover { background: transparent; color: var(--affiliate-btn-bg-color) !important; }
.btn-affiliate-1:hover svg path,
.feature-cta-banner-1 > div .btn-link:hover svg path,
.partnership-cta-banner-1 .btn-link:hover svg path { stroke: var(--affiliate-btn-bg-color); }

.feature-cta-banner-1 {
	display: flex;
	gap: 40px;
	padding: 24px;
	border-radius: 24px;
	background: var(--affiliate-bg-color);
	color: var(--affiliate-text-color);
	font-family: "Instrument Sans", sans-serif;
}
.feature-cta-banner-1 img { width: 40%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.feature-cta-banner-1 > div { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }
.feature-cta-banner-1 > div .title { margin: 0 !important; padding: 0 !important; color: var(--affiliate-text-color); font-family: inherit; font-size: 40px; font-weight: 600; line-height: normal; }
.feature-cta-banner-1 > div .desc { margin: 0; font-size: 18px; font-weight: 400; line-height: 32px; }

.partnership-cta-banner-1 {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
	padding: 24px 40px;
	border-radius: 8px;
	background: var(--affiliate-bg-color);
	color: var(--affiliate-text-color);
	font-family: "Instrument Sans", sans-serif;
}
.partnership-cta-banner-1 .title { margin: 0 !important; font-family: "Instrument Sans", sans-serif; font-size: 24px; font-weight: 600; line-height: 32px; }
.partnership-cta-banner-1 .btn-link { flex-shrink: 0; width: 48px; height: 48px; padding: 0; }

.content-highlight-card-1 {
	padding: 20px 26px;
	border-left: 22px solid var(--affiliate-secondary-color);
	border-radius: 8px;
	background: var(--affiliate-bg-color);
	color: var(--affiliate-text-color);
	font-family: "Instrument Sans", sans-serif;
}
.content-highlight-card-1 * { display: inline; }
.content-highlight-card-1 .title { font-size: 20px; font-weight: 700; line-height: 32px; }
.content-highlight-card-1 .desc { margin: 0; font-size: 20px; font-weight: 400; line-height: 32px; }
.content-highlight-card-1 .desc a { color: inherit; }
.content-highlight-card-1 .desc strong { text-decoration: underline; text-underline-position: from-font; }

@media screen and (max-width: 768px) {
	.btn-affiliate-1, .feature-cta-banner-1 > div .btn-link { padding: 12px 24px; }
	.feature-cta-banner-1 { flex-direction: column; gap: 32px; padding: 16px 16px 40px; }
	.feature-cta-banner-1 img { width: 100%; }
	.feature-cta-banner-1 > div .title { font-size: 28px; line-height: 40px; }
	.partnership-cta-banner-1 { padding: 32px 16px; }
	.partnership-cta-banner-1 .title { font-size: 20px; line-height: 32px; }
	.content-highlight-card-1 { padding: 16px 29px 16px 16px; border-left-width: 16px; }
	.content-highlight-card-1 .title, .content-highlight-card-1 .desc { font-size: 18px; }
}
