/*
 * ThriveMBA Core - front-end styles.
 *
 * Deliberately restrained. Fonts and colours are inherited from the active
 * theme wherever possible, so the cards sit inside whatever design you
 * choose instead of fighting it. Override anything here from the theme's
 * own stylesheet or Additional CSS.
 */

:root {
	--tmba-radius: 10px;
	--tmba-border: #e3e8ee;
	--tmba-muted: #5b6b7c;
	--tmba-accent: #102a43;
	--tmba-accent-text: #ffffff;
	--tmba-gap: 24px;
}

/* ---------- Announcement bar ---------- */

.tmba-announce {
	width: 100%;
	font-size: 15px;
	line-height: 1.4;
}

.tmba-announce__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 10px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	text-align: center;
}

.tmba-announce__cta {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.tmba-announce__cta:hover,
.tmba-announce__cta:focus {
	opacity: .85;
}

/* ---------- Grid ---------- */

.tmba-grid {
	display: grid;
	gap: var(--tmba-gap);
	margin: 32px 0;
}

.tmba-grid--1 { grid-template-columns: 1fr; }
.tmba-grid--2 { grid-template-columns: repeat(2, 1fr); }
.tmba-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tmba-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
	.tmba-grid--3,
	.tmba-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.tmba-grid { grid-template-columns: 1fr !important; }
}

/* ---------- Card ---------- */

.tmba-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--tmba-border);
	border-radius: var(--tmba-radius);
	overflow: hidden;
	background: #fff;
	transition: box-shadow .18s ease, transform .18s ease;
}

.tmba-card:hover {
	box-shadow: 0 6px 24px rgba(16, 42, 67, .08);
	transform: translateY(-2px);
}

.tmba-card__media img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.tmba-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
	flex: 1;
}

.tmba-card__title {
	margin: 0;
	font-size: 19px;
	line-height: 1.3;
}

.tmba-card__title a {
	text-decoration: none;
	color: inherit;
}

.tmba-card__title a:hover {
	text-decoration: underline;
}

.tmba-card__audience,
.tmba-card__edition,
.tmba-card__role,
.tmba-card__org,
.tmba-card__expertise,
.tmba-card__date {
	margin: 0;
	font-size: 14px;
	color: var(--tmba-muted);
}

.tmba-card__summary {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
}

.tmba-card__facts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 14px;
	color: var(--tmba-muted);
}

.tmba-card__facts li {
	margin: 0;
	position: relative;
}

.tmba-card__facts li + li::before {
	content: "";
	position: absolute;
	left: -8px;
	top: 50%;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	transform: translateY(-50%);
}

/* Push the button to the bottom so cards in a row line up. */
.tmba-card .tmba-btn {
	margin-top: auto;
}

.tmba-card--mentor {
	text-align: center;
}

.tmba-card__avatar img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.tmba-card--event.is-past {
	opacity: .92;
}

/* ---------- Badge ---------- */

.tmba-badge {
	align-self: flex-start;
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	background: #eef2f7;
	color: #334e68;
}

.tmba-badge--open,
.tmba-badge--registration { background: #e3f6ec; color: #136c3a; }

.tmba-badge--closed,
.tmba-badge--archived { background: #f3f4f6; color: #6b7280; }

.tmba-badge--upcoming { background: #fff4e0; color: #8a5300; }

.tmba-badge--completed { background: #eef2f7; color: #486581; }

.tmba-badge--format { text-transform: none; }

/* ---------- Button ---------- */

.tmba-btn {
	display: inline-block;
	align-self: flex-start;
	padding: 10px 18px;
	border-radius: 8px;
	background: var(--tmba-accent);
	color: var(--tmba-accent-text);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--tmba-accent);
}

.tmba-btn:hover,
.tmba-btn:focus {
	opacity: .9;
	color: var(--tmba-accent-text);
}

.tmba-btn--ghost {
	background: transparent;
	color: var(--tmba-accent);
}

.tmba-btn--ghost:hover,
.tmba-btn--ghost:focus {
	background: var(--tmba-accent);
	color: var(--tmba-accent-text);
}

/* Visible focus ring - keyboard accessibility is on the launch checklist. */
.tmba-btn:focus-visible,
.tmba-announce__cta:focus-visible,
.tmba-card__title a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* ---------- Empty state ---------- */

.tmba-empty {
	margin: 32px 0;
	padding: 28px;
	border: 1px dashed var(--tmba-border);
	border-radius: var(--tmba-radius);
	text-align: center;
	color: var(--tmba-muted);
	font-size: 15px;
}

/* ---------- Lists rendered from one-per-line fields ---------- */

.tmba-list {
	margin: 0 0 1em;
	padding-left: 1.2em;
}

.tmba-list li {
	margin-bottom: .4em;
}

/* ===================================================================
 * Single Program / Event / Resource / Mentor pages
 * =================================================================== */

.tmba-single {
	margin-top: 36px;
}

.tmba-section {
	margin: 36px 0;
}

.tmba-section__title {
	margin: 0 0 14px;
	font-size: 24px;
	line-height: 1.25;
	color: var(--tmba-accent);
}

.tmba-section__body > *:first-child {
	margin-top: 0;
}

/* Facts strip */

.tmba-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 1px;
	margin: 28px 0;
	background: var(--tmba-border);
	border: 1px solid var(--tmba-border);
	border-radius: var(--tmba-radius);
	overflow: hidden;
}

.tmba-fact {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	background: #fff;
}

.tmba-fact__label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--tmba-muted);
}

.tmba-fact__value {
	font-size: 16px;
	line-height: 1.4;
	color: var(--tmba-accent);
}

/* Tick list */

.tmba-ticks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.tmba-ticks li {
	position: relative;
	padding-left: 28px;
	line-height: 1.55;
}

.tmba-ticks li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .45em;
	width: 7px;
	height: 12px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(42deg);
	opacity: .55;
}

/* Notices */

.tmba-notice {
	margin: 24px 0;
	padding: 14px 18px;
	border-left: 4px solid #dba617;
	border-radius: 6px;
	background: #fdf6e3;
	font-size: 15px;
	line-height: 1.5;
}

/* Fee */

.tmba-fee {
	margin: 0 0 10px;
	font-size: 28px;
	font-weight: 700;
	color: var(--tmba-accent);
}

.tmba-terms {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--tmba-border);
	font-size: 14px;
	color: var(--tmba-muted);
}

/* CTA row */

.tmba-ctarow {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 28px 0;
}

/* Form */

.tmba-formwrap {
	padding: 28px;
	border: 1px solid var(--tmba-border);
	border-radius: var(--tmba-radius);
	background: #fbfcfd;
	scroll-margin-top: 90px;
}

.tmba-formwrap label {
	display: inline-block;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 600;
}

.tmba-formwrap input[type="text"],
.tmba-formwrap input[type="email"],
.tmba-formwrap input[type="tel"],
.tmba-formwrap textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--tmba-border);
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
}

.tmba-formwrap textarea {
	min-height: 120px;
}

.tmba-formwrap input:focus,
.tmba-formwrap textarea:focus {
	outline: 2px solid var(--tmba-accent);
	outline-offset: 1px;
}

.tmba-formwrap .wpcf7-submit {
	padding: 12px 26px;
	border: 0;
	border-radius: 8px;
	background: var(--tmba-accent);
	color: var(--tmba-accent-text);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.tmba-req {
	font-weight: 400;
	color: var(--tmba-muted);
}

.tmba-cf7-consent {
	font-size: 14px;
	line-height: 1.5;
	color: var(--tmba-muted);
}

.tmba-consent {
	margin: 14px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--tmba-muted);
}
