/* PLG Layouts — Content Blocks
   Style dùng CSS variable để bạn dễ chỉnh theo màu thương hiệu — chỉ cần override
   :root ở theme (child theme CSS) mà không phải sửa file này. */
:root {
	--plg-primary: #2563eb;
	--plg-primary-dark: #1d4ed8;
	--plg-text: #1f2937;
	--plg-muted: #6b7280;
	--plg-border: #e5e7eb;
	--plg-bg-soft: #f9fafb;
	--plg-radius: 12px;
}

/* Sapo */
.plg-sapo {
	font-size: 1.15em;
	line-height: 1.6;
	color: var(--plg-muted);
	border-left: 3px solid var(--plg-primary);
	padding-left: 16px;
	margin: 1.5em 0;
}

/* CTA */
.plg-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	background: linear-gradient(135deg, var(--plg-primary), var(--plg-primary-dark));
	color: #fff;
	border-radius: var(--plg-radius);
	padding: 28px 32px;
	margin: 1.5em 0;
}
.plg-cta-title {
	margin: 0 0 6px;
	color: #fff;
	font-size: 1.3em;
}
.plg-cta-text {
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
}
.plg-cta-btn {
	flex-shrink: 0;
	background: #fff;
	color: var(--plg-primary-dark);
	font-weight: 600;
	padding: 12px 24px;
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.15s ease;
}
.plg-cta-btn:hover {
	transform: translateY(-2px);
}

/* Products */
.plg-products {
	margin: 1.5em 0;
}
.plg-products-label {
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.85em;
	letter-spacing: 0.04em;
	color: var(--plg-primary);
	margin-bottom: 12px;
}
.plg-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
}
.plg-product-card {
	border: 1px solid var(--plg-border);
	border-radius: var(--plg-radius);
	padding: 20px;
	text-align: center;
	background: #fff;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.plg-product-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-3px);
}
.plg-product-thumb {
	font-size: 2.2em;
	margin-bottom: 10px;
}
.plg-product-name {
	margin: 0 0 6px;
	font-size: 1.05em;
}
.plg-product-desc {
	color: var(--plg-muted);
	font-size: 0.9em;
	margin: 0 0 10px;
}
.plg-product-price {
	font-weight: 700;
	color: var(--plg-primary-dark);
	margin-bottom: 12px;
}
.plg-product-btn {
	display: inline-block;
	border: 1px solid var(--plg-primary);
	color: var(--plg-primary);
	padding: 8px 18px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.9em;
	transition: background 0.15s ease, color 0.15s ease;
}
.plg-product-btn:hover {
	background: var(--plg-primary);
	color: #fff;
}

/* Pricing */
.plg-pricing {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin: 1.5em 0;
	align-items: stretch;
}
.plg-pricing-card {
	position: relative;
	border: 1px solid var(--plg-border);
	border-radius: var(--plg-radius);
	padding: 28px 24px;
	background: #fff;
	display: flex;
	flex-direction: column;
}
.plg-pricing-card.is-featured {
	border: 2px solid var(--plg-primary);
	box-shadow: 0 12px 28px rgba(37, 99, 235, 0.15);
}
.plg-pricing-badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--plg-primary);
	color: #fff;
	font-size: 0.75em;
	padding: 4px 14px;
	border-radius: 999px;
	white-space: nowrap;
}
.plg-pricing-name {
	margin: 0 0 8px;
	text-align: center;
}
.plg-pricing-price {
	text-align: center;
	font-size: 1.8em;
	font-weight: 700;
	color: var(--plg-text);
	margin-bottom: 16px;
}
.plg-pricing-period {
	font-size: 0.4em;
	color: var(--plg-muted);
	font-weight: 400;
}
.plg-pricing-features {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
	flex: 1;
}
.plg-pricing-features li {
	padding: 6px 0;
	color: var(--plg-text);
	font-size: 0.92em;
	border-bottom: 1px solid var(--plg-bg-soft);
}
.plg-pricing-btn {
	display: block;
	text-align: center;
	background: var(--plg-bg-soft);
	color: var(--plg-text);
	padding: 10px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.15s ease, color 0.15s ease;
}
.plg-pricing-card.is-featured .plg-pricing-btn {
	background: var(--plg-primary);
	color: #fff;
}
.plg-pricing-btn:hover {
	opacity: 0.85;
}

/* FAQ */
.plg-faq {
	margin: 1.5em 0;
	border-top: 1px solid var(--plg-border);
}
.plg-faq-item {
	border-bottom: 1px solid var(--plg-border);
	padding: 4px 0;
}
.plg-faq-question {
	cursor: pointer;
	font-weight: 600;
	padding: 14px 28px 14px 4px;
	position: relative;
	list-style: none;
}
.plg-faq-question::-webkit-details-marker {
	display: none;
}
.plg-faq-question::after {
	content: '+';
	position: absolute;
	right: 4px;
	top: 12px;
	font-size: 1.3em;
	color: var(--plg-primary);
	transition: transform 0.15s ease;
}
.plg-faq-item[open] .plg-faq-question::after {
	transform: rotate(45deg);
}
.plg-faq-answer {
	padding: 0 4px 16px;
	color: var(--plg-muted);
	line-height: 1.6;
}

/* Alert box */
.plg-alert {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	border-radius: 8px;
	padding: 14px 18px;
	margin: 1.2em 0;
	border-left: 4px solid;
}
.plg-alert-icon {
	font-size: 1.2em;
	line-height: 1;
}
.plg-alert-text {
	line-height: 1.5;
}
.plg-alert-info {
	background: #eff6ff;
	border-color: #3b82f6;
	color: #1e3a8a;
}
.plg-alert-success {
	background: #f0fdf4;
	border-color: #22c55e;
	color: #14532d;
}
.plg-alert-warning {
	background: #fffbeb;
	border-color: #f59e0b;
	color: #78350f;
}
.plg-alert-danger {
	background: #fef2f2;
	border-color: #ef4444;
	color: #7f1d1d;
}

/* Testimonial */
.plg-testimonial {
	background: var(--plg-bg-soft);
	border-radius: var(--plg-radius);
	padding: 28px 32px;
	margin: 1.5em 0;
	text-align: center;
}
.plg-testimonial-stars {
	color: #f59e0b;
	letter-spacing: 2px;
	margin-bottom: 10px;
}
.plg-testimonial-quote {
	font-size: 1.1em;
	font-style: italic;
	color: var(--plg-text);
	margin: 0 0 18px;
	line-height: 1.6;
}
.plg-testimonial-author {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}
.plg-testimonial-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--plg-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	flex-shrink: 0;
}
.plg-testimonial-name {
	font-weight: 600;
	text-align: left;
}
.plg-testimonial-role {
	font-size: 0.85em;
	color: var(--plg-muted);
	text-align: left;
}

/* Comparison table */
table.plg-comparison {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	border-radius: var(--plg-radius);
	overflow: hidden;
	border: 1px solid var(--plg-border);
}
table.plg-comparison th,
table.plg-comparison td {
	padding: 12px 16px;
	text-align: center;
	border-bottom: 1px solid var(--plg-border);
}
table.plg-comparison th:first-child,
table.plg-comparison td:first-child {
	text-align: left;
}
table.plg-comparison thead th {
	background: var(--plg-bg-soft);
	font-weight: 700;
}
.plg-comparison-cell .plg-yes {
	color: #22c55e;
	font-weight: 700;
}
.plg-comparison-cell .plg-no {
	color: var(--plg-muted);
}

/* Cross-sell (giữ từ bản trước) */
.plg-cross-sell {
	border: 1px solid var(--plg-border);
	border-radius: var(--plg-radius);
	padding: 20px;
	margin: 1.5em 0;
	background: #fff;
	position: relative;
}
.plg-cross-sell-badge {
	display: inline-block;
	background: var(--plg-primary);
	color: #fff;
	font-size: 0.7em;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 10px;
}
.plg-cross-sell-title {
	margin: 0 0 8px;
}
.plg-cross-sell-text {
	color: var(--plg-muted);
	margin: 0 0 12px;
}
.plg-cross-sell-btn {
	color: var(--plg-primary);
	font-weight: 600;
	text-decoration: none;
}

/* Read more */
.plg-read-more {
	background: var(--plg-bg-soft);
	border-radius: var(--plg-radius);
	padding: 18px 22px;
	margin: 1.5em 0;
}
.plg-read-more-title {
	font-weight: 700;
	margin: 0 0 8px;
}
.plg-read-more-list {
	margin: 0;
	padding-left: 20px;
}
.plg-read-more-list li {
	margin-bottom: 4px;
}

/* Button */
.plg-btn {
	display: inline-block;
	padding: 11px 26px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.plg-btn-primary {
	background: var(--plg-primary);
	color: #fff;
	border: 1px solid var(--plg-primary);
}
.plg-btn-primary:hover {
	background: var(--plg-primary-dark);
	border-color: var(--plg-primary-dark);
	transform: translateY(-1px);
}
.plg-btn-secondary {
	background: transparent;
	color: var(--plg-primary);
	border: 1px solid var(--plg-primary);
}
.plg-btn-secondary:hover {
	background: var(--plg-primary);
	color: #fff;
}
.plg-btn-ghost {
	background: transparent;
	color: var(--plg-primary);
	border: 1px solid transparent;
	padding-left: 4px;
	padding-right: 4px;
}
.plg-btn-ghost:hover {
	text-decoration: underline;
}

/* Tabs */
.plg-tabs {
	margin: 1.5em 0;
}
.plg-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	border-bottom: 2px solid var(--plg-border);
	margin-bottom: 18px;
}
.plg-tabs-btn {
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	padding: 10px 18px;
	font-weight: 600;
	color: var(--plg-muted);
	cursor: pointer;
	font-size: 0.95em;
}
.plg-tabs-btn:hover {
	color: var(--plg-text);
}
.plg-tabs-btn.is-active {
	color: var(--plg-primary);
	border-bottom-color: var(--plg-primary);
}
.plg-tabs-panel-label {
	display: none; /* Chỉ hiện trong khung soạn thảo — xem assets/editor.css */
}
.plg-tabs-panel {
	display: none;
	line-height: 1.6;
	color: var(--plg-text);
}
.plg-tabs-panel.is-active {
	display: block;
}
.plg-tabs-panel p:first-child {
	margin-top: 0;
}

/* Accordion (khác FAQ: style dạng card cho nội dung tổng quát, không riêng hỏi-đáp) */
.plg-accordion {
	margin: 1.5em 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.plg-accordion-item {
	border: 1px solid var(--plg-border);
	border-radius: 10px;
	padding: 4px 4px;
	background: #fff;
}
.plg-accordion-title {
	cursor: pointer;
	font-weight: 600;
	padding: 12px 40px 12px 16px;
	position: relative;
	list-style: none;
}
.plg-accordion-title::-webkit-details-marker {
	display: none;
}
.plg-accordion-title::after {
	content: '▾';
	position: absolute;
	right: 16px;
	top: 12px;
	color: var(--plg-primary);
	transition: transform 0.15s ease;
}
.plg-accordion-item[open] .plg-accordion-title::after {
	transform: rotate(180deg);
}
.plg-accordion-content {
	padding: 0 16px 16px;
	color: var(--plg-muted);
	line-height: 1.6;
}
.plg-accordion-content p:first-child {
	margin-top: 0;
}
.plg-accordion-content p:last-child {
	margin-bottom: 0;
}
