/* Generic inner-page sections: page hero, stat strip, card grid, timeline, audience, venue, FAQ. */

/* Reset default heading margin/leading on navy-text elements (h2/h3 in the
   section headers, timeline titles, time badges) so the Tailwind spacing wins. */
.text-kbit-navy {
	line-height: 1;
	margin: 0;
}

.amlab-page-hero {
	position: relative;
	overflow: hidden;
	margin-top: 0;
}

.amlab-page-hero .amlab-page-hero__eyebrow {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--vt-red);
	margin-bottom: 1.25rem; /* Next: mb-5 */
}

/* Only reset default h1 margin; leading-tight / tracking-tight / max-w-[600px] /
   text-white come from the Tailwind classes on the element so it matches the
   Next.js PageHero exactly (element selector here must NOT re-set line-height or
   letter-spacing, or it would out-specify and override those utilities). */
.amlab-page-hero h1 {
	margin: 0;
}

.amlab-page-hero .amlab-page-hero__desc {
	color: rgba(255, 255, 255, 0.55);
	max-width: 32rem;       /* Next: max-w-lg */
	margin-top: 1.5rem;     /* Next: mt-6 */
	line-height: 1.75rem;   /* Next: leading-7 */
}

/* accent bars behind page hero */
.amlab-accent-aurora.amlab-page-hero { background-color: #0b1222; }
.amlab-accent-gold.amlab-page-hero { background-color: var(--vt-ink); }
.amlab-accent-midnight.amlab-page-hero { background-color: #10131f; }

/* ===== Split page hero (text + CTAs | glass info card) ===== */
/* Next puts py-16 on the inner grid (which also carries min-h-[440px]), NOT on
   the section — so padding + min-height live on the same box (border-box). */
.amlab-page-hero--split .amlab-page-hero__cols {
	position: relative;
	z-index: 1;
	gap: 3rem;
	align-items: center;
	min-height: 440px;
	padding: 4rem 0;
	box-sizing: border-box;
}

/* The hero uses Tailwind `border` utilities (rings, CTA, card divider, chips).
   Preflight is off, so Tailwind's default border-style (solid) is missing → the
   border collapses to 0 width. Restore border-style for every Tailwind border in
   the hero (border-kbit-*, border-white/*, border-b…). */
.amlab-page-hero [class*="border"] { border-style: solid; }

/* CTA label + arrow icon inline; rounded-md corners like the Next hero (not pill). */
.amlab-page-hero .wp-block-button__link { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 6px; }
.amlab-page-hero .wp-block-button__link svg { flex-shrink: 0; }

.amlab-page-hero__eyebrow--rule {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.amlab-eyebrow-rule {
	display: inline-block;
	width: 2rem;
	height: 1px;
	background: currentColor;
	flex-shrink: 0;
}

/* Light (white) CTA next to the gold one. */
.is-style-amlab-btn-light .wp-block-button__link {
	background: #fff;
	color: var(--vt-ink);
	border: 1px solid rgba(32, 41, 64, 0.25);
	border-radius: 8px;
	font-weight: 600;
	padding: 0.65rem 1.25rem;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.is-style-amlab-btn-light .wp-block-button__link:hover {
	border-color: var(--vt-red);
	color: var(--vt-ink);
}

/* Glass info card (right column). */
.amlab-hero-card { border-radius: 0.9rem; padding: 1.25rem; }

.amlab-hero-card__head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding-bottom: 1rem;
	margin-bottom: 1rem;
}

.amlab-hero-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.7);
	flex-shrink: 0;
}

.amlab-hero-card__title { font-size: 0.9rem; font-weight: 700; color: #fff; margin: 0; }
.amlab-hero-card__sub { font-size: 0.75rem; color: rgba(255, 255, 255, 0.45); margin: 0.1rem 0 0; }

.amlab-hero-card__chips { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

.amlab-hero-card__chip {
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.05);
	border-radius: 0.6rem;
	padding: 0.7rem 0.75rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: #fff;
}

@media (max-width: 782px) {
	.amlab-page-hero--split .amlab-page-hero__cols { gap: 2rem; min-height: 0; padding: 3rem 0; }
	.amlab-hero-card__chips { grid-template-columns: 1fr; }
}

/* ===== Snapshot strip (bordered 3-up card below the hero) ===== */
.amlab-snapshot-section { position: relative; }

.amlab-snapshot {
	display: grid;
	grid-template-columns: 1fr;
	border: 1px solid var(--vt-border);
	border-radius: 0.75rem;
	background: #fff;
	box-shadow: 0 8px 22px rgba(21, 28, 44, 0.06);
	overflow: hidden;
}

.amlab-snapshot__cell {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.5rem;
	border-bottom: 1px solid var(--vt-border);
}

.amlab-snapshot__cell:last-child { border-bottom: none; }

.amlab-snapshot__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: rgba(197, 161, 90, 0.1);
	color: var(--vt-red);
	flex-shrink: 0;
}

.amlab-snapshot__value { font-size: 1.25rem; font-weight: 800; color: var(--vt-ink); margin: 0; }
.amlab-snapshot__label { font-size: 0.875rem; color: rgba(21, 27, 47, 0.6); margin: 0.1rem 0 0; }

@media (min-width: 768px) {
	.amlab-snapshot { grid-template-columns: repeat(3, 1fr); }
	.amlab-snapshot__cell {
		border-bottom: none;
		border-right: 1px solid var(--vt-border);
	}
	.amlab-snapshot__cell:last-child { border-right: none; }
}

/* ===== Mission & Vision two-column overview ===== */
.amlab-mv { display: grid; gap: 2.5rem; align-items: start; }

@media (min-width: 1024px) {
	.amlab-mv { grid-template-columns: 0.9fr 1.1fr; }
}

.amlab-mv__eyebrow {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--vt-ink);
	margin: 0 0 0.5rem;
}

.amlab-mv__heading {
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	font-weight: 800;
	color: var(--vt-ink);
	line-height: 1.15;
	margin: 0;
}

.amlab-mv__rule {
	width: 2.5rem;
	height: 2px;
	border-radius: 999px;
	background: var(--vt-ink);
	margin: 0.75rem 0 1rem;
}

.amlab-mv__desc {
	font-size: 0.95rem;
	line-height: 1.6;
	color: rgba(21, 27, 47, 0.65);
	max-width: 40rem;
	margin: 0 0 1.75rem;
}

.amlab-mv__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.amlab-mv-chip {
	border: 1px solid var(--vt-border);
	background: #fff;
	border-radius: 999px;
	padding: 0.35rem 0.75rem;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--vt-ink);
}

.amlab-mv__cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }

@media (min-width: 640px) {
	.amlab-mv__cards { grid-template-columns: 1fr 1fr; }
}

.amlab-mv-card {
	border: 1px solid var(--vt-border);
	background: #fff;
	border-radius: 0.6rem;
	padding: 1.25rem;
	box-shadow: 0 8px 22px rgba(21, 28, 44, 0.06);
}

.amlab-mv-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: var(--vt-muted);
	color: var(--vt-ink);
}

.amlab-mv-card__title { font-size: 1rem; font-weight: 700; color: var(--vt-ink); margin: 1rem 0 0; }
.amlab-mv-card__desc { font-size: 0.875rem; line-height: 1.6; color: rgba(21, 27, 47, 0.7); margin: 0.5rem 0 0; }

/* Stat strip (inner page, on light bg) — thẻ số liệu đỏ Vistar */
.amlab-page-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.25rem;
	margin: 3rem 0;
}
.amlab-page-stats .amlab-stat {
	background: #fff;
	border: 1px solid var(--vt-border);
	border-radius: 12px;
	padding: 26px 22px;
	text-align: center;
	box-shadow: 0 8px 22px rgba(28, 28, 30, 0.06);
	transition: transform .2s, box-shadow .2s;
}
.amlab-page-stats .amlab-stat:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(28, 28, 30, 0.1);
}
.amlab-page-stats .amlab-stat__value {
	font-family: 'Montserrat', system-ui, sans-serif;
	font-size: 2.4rem;
	font-weight: 900;
	line-height: 1;
	color: var(--vt-red);
	font-variant-numeric: tabular-nums;
	margin: 0;
}
.amlab-page-stats .amlab-stat__label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--vt-grey);
	margin: 0.55rem 0 0;
}

@media (max-width: 560px) { .amlab-page-stats { grid-template-columns: 1fr 1fr; } }

.amlab-page-stat {
	border: 1px solid var(--vt-border);
	border-radius: 1rem;
	background: #fff;
	padding: 1.5rem;
	box-shadow: 0 8px 22px rgba(21, 28, 44, 0.06);
}

.amlab-page-stat__value {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--vt-ink);
	margin: 0;
}

.amlab-page-stat__label {
	font-size: 0.8rem;
	color: rgba(21, 27, 47, 0.6);
	margin: 0.35rem 0 0;
}

/* Card grid */
.amlab-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

@media (max-width: 900px) { .amlab-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .amlab-card-grid { grid-template-columns: 1fr; } }

.amlab-card {
	border: 1px solid var(--vt-border);
	border-radius: 1rem;
	background: #fff;
	padding: 1.5rem;
	box-shadow: 0 8px 22px rgba(21, 28, 44, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.amlab-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 40px rgba(21, 28, 44, 0.08);
}

.amlab-card--gold { border-top: 3px solid var(--vt-red); }

.amlab-card__title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--vt-ink);
	margin: 0 0 0.5rem;
}

.amlab-card__desc {
	font-size: 0.85rem;
	line-height: 1.6;
	color: rgba(21, 27, 47, 0.62);
	margin: 0;
}

/* Timeline / agenda */
.amlab-timeline {
	display: grid;
	gap: 1rem;
}

.amlab-timeline-row {
	display: grid;
	grid-template-columns: 10rem 1fr;
	gap: 1.25rem;
	align-items: start;
	border-left: 2px solid var(--vt-border);
	padding-left: 1.5rem;
	position: relative;
}

.amlab-timeline-row::before {
	content: "";
	position: absolute;
	left: -7px;
	top: 0.4rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--vt-red);
}

.amlab-timeline-time {
	font-size: 0.82rem;
	font-weight: 800;
	color: var(--vt-red);
	font-variant-numeric: tabular-nums;
}

.amlab-timeline-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--vt-ink);
	margin: 0;
}

.amlab-timeline-detail {
	font-size: 0.82rem;
	color: rgba(21, 27, 47, 0.6);
	margin: 0.25rem 0 0;
}

@media (max-width: 720px) {
	.amlab-timeline-row { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* Audience list */
.amlab-audience {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.amlab-audience li {
	border: 1px solid var(--vt-border);
	border-radius: 999px;
	background: var(--vt-muted);
	padding: 0.5rem 1rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--vt-ink);
}

/* Venue card */
.amlab-venue {
	border: 1px solid var(--vt-border);
	border-radius: 1.1rem;
	background: linear-gradient(135deg, var(--vt-muted), #fff);
	padding: 2rem;
}

.amlab-venue__title {
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--vt-ink);
	margin: 0 0 0.35rem;
}

.amlab-venue__location {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--vt-red);
	margin: 0 0 0.75rem;
}

.amlab-venue__note {
	font-size: 0.82rem;
	color: rgba(21, 27, 47, 0.6);
	margin: 0;
}

/* FAQ — 2-column card accordion matching the Next.js FAQAccordion. Styled here
   (not via Tailwind) so it applies to BOTH the [amlab_faq] shortcode and native
   wp:details blocks dropped inside a .amlab-faq group. */
.amlab-faq { display: grid; gap: 0.75rem; }
@media (min-width: 768px) { .amlab-faq { grid-template-columns: 1fr 1fr; } }
.amlab-faq details {
	border: 1px solid var(--vt-border);
	border-radius: 0.5rem;
	background: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	margin: 0;
	padding: 0;
}
.amlab-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem;
	font-weight: 700;
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--vt-ink);
	cursor: pointer;
	list-style: none;
}
.amlab-faq summary::-webkit-details-marker { display: none; }
.amlab-faq summary::after {
	content: "";
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	background: center / 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23202940' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	transition: transform 0.2s;
}
.amlab-faq details[open] summary::after { transform: rotate(180deg); }
.amlab-faq details p {
	border-top: 1px solid var(--vt-border);
	padding: 1rem;
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5rem;
	color: rgba(21, 27, 47, 0.7);
}

/* Button-based FAQ (shortcode) — collapse closed answers + flip the chevron. */
/* Keep each item at its natural height so a closed card next to an open one does
   not stretch (which reads as "also active"). */
.amlab-faq details,
.amlab-faq__item { align-self: start; }
.amlab-faq__q { cursor: pointer; background: none; border: 0; }
.amlab-faq__q[aria-expanded="false"] + .amlab-faq__a { display: none; }
.amlab-faq__q[aria-expanded="true"] .amlab-faq__chevron { transform: rotate(180deg); }

/* Business inquiry — restyle the embedded Contact Form 7 controls to the Next
   InquiryPanel look (h-11 rounded inputs, bold labels, gold focus ring) without
   losing CF7 functionality. Scoped so it never leaks to other CF7 forms. */
.amlab-business-form .wpcf7-form p { margin: 0; }
.amlab-business-form .wpcf7-form label { display: block; }
.amlab-business-form .wpcf7-form-control-wrap { display: block; margin-top: 0.5rem; }
.amlab-business-form .wpcf7-form input.wpcf7-form-control:not([type="checkbox"]):not([type="submit"]),
.amlab-business-form .wpcf7-form select.wpcf7-form-control,
.amlab-business-form .wpcf7-form textarea.wpcf7-form-control {
	width: 100%;
	height: 2.75rem;
	border: 1px solid var(--vt-border);
	border-radius: 0.375rem;
	background: #fff;
	padding: 0 0.75rem;
	font-size: 0.875rem;
	color: var(--vt-ink);
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.amlab-business-form .wpcf7-form textarea.wpcf7-form-control {
	height: auto;
	min-height: 7rem;
	padding: 0.75rem;
}
.amlab-business-form .wpcf7-form .wpcf7-form-control:focus {
	border-color: var(--vt-red);
	box-shadow: 0 0 0 2px rgba(197, 161, 90, 0.15);
}
.amlab-business-form .wpcf7-acceptance label {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: 0.875rem;
	font-weight: 400;
	color: rgba(21, 27, 47, 0.7);
}
.amlab-business-form .wpcf7-acceptance input { width: auto; height: auto; margin-top: 0.15rem; }
.amlab-business-form .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	height: 2.75rem;
	width: fit-content;
	border: 0;
	border-radius: 0.375rem;
	background: var(--vt-red);
	padding: 0 1.25rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--vt-ink);
	cursor: pointer;
}
.amlab-business-form .wpcf7-submit:disabled { opacity: 0.6; cursor: default; }

/* Register flow — selected event card ring + active stepper node. State classes
   are toggled by register-flow.js (conditional utilities can't live in markup). */
.amlab-reg-event.is-selected {
	border-color: var(--vt-red);
	box-shadow: 0 0 0 2px rgba( 197, 161, 90, 0.3 );
}
.amlab-reg-step.is-active .amlab-reg-step__num {
	background: var(--vt-ink);
	border-color: var(--vt-ink);
	color: #fff;
}
/* Participant-type toggle (doctor / business) — same selected treatment as the
   event cards so the two choice surfaces read as one system. */
.amlab-reg-type__opt.is-selected {
	border-color: var(--vt-red);
	background: #FBF4E6;
	box-shadow: 0 0 0 2px rgba( 197, 161, 90, 0.3 );
}

/* Filter tabs (static, decorative) */
.amlab-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2rem;
}

.amlab-tabs span {
	border: 1px solid var(--vt-border);
	border-radius: 999px;
	padding: 0.4rem 1rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: rgba(21, 27, 47, 0.7);
	background: #fff;
}

.amlab-tabs span:first-child {
	background: var(--vt-ink);
	color: #fff;
	border-color: var(--vt-ink);
}

@media (prefers-reduced-motion: reduce) {
	.amlab-card:hover { transform: none; }
}
